Skip to content

Commit

Permalink
Regenerate ISO-8859-8-I.xml due to error in its content
Browse files Browse the repository at this point in the history
CDATA section was formed incorrectly and instead was recognized as a Start tag.

File introduced in PR #465 and was made manually and not using generator, because
WHATWG does not have definition of this encoding as a separate entry in index.json.
Actually, this encoding the same as ISO-8859-8, but influences layout direction
when render text.

Wikipedia:
The WHATWG Encoding Standard used by HTML5 treats ISO-8859-8 and ISO-8859-8-I
as distinct encodings with the same mapping due to influence on the layout direction

So generator was fixed and file regenerated
  • Loading branch information
Mingun committed Sep 27, 2023
1 parent ede4fb9 commit c639714
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
9 changes: 9 additions & 0 deletions test-gen/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,15 @@ fn main() {
.expect(&format!("label `{}` is unsupported", label));

process_index(enc, &codepoints);
if enc == ISO_8859_8 {
// ISO_8859_8_I does not have its own index in encoding/indexes.json,
// but it have the same mapping as ISO_8859_8.
//
// Wikipedia (https://en.wikipedia.org/wiki/ISO-8859-8-I):
// The WHATWG Encoding Standard used by HTML5 treats ISO-8859-8 and ISO-8859-8-I
// as distinct encodings with the same mapping due to influence on the layout direction
process_index(ISO_8859_8_I, &codepoints);
}
}
// https://encoding.spec.whatwg.org/#x-user-defined-decoder
make_xml(X_USER_DEFINED, '\u{F780}'..='\u{F7FF}');
Expand Down
29 changes: 15 additions & 14 deletions tests/documents/encoding/ISO-8859-8-I.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
㰿硭氠敮捯摩湧㴢䥓伭㠸㔹ⴸⵉ∿㸊㱲潯琠慴瑲楢畴攱㴢Ă̄Ԇ܈ऊଌഎ༐ᄒጔᔖ᜘ᤚᬜᴞἠ℣␥✨⤪⬬⴮⼰ㄲ㌴㔶㜸㤺㬽㸿䁁䉃䑅䙇䡉䩋䱍乏偑剓呕噗塙婛屝幟恡扣摥晧桩橫汭湯灱牳瑵癷硹穻籽繿肁芃蒅蚇袉誋貍躏邑銓钕隗颙骛鲝麟ꀢਠ††⁡瑴物扵瑥㈽✁ȃЅ؇ࠉ਋఍ฏထሓᐕᘗ᠙ᨛᰝḟ‡∣␥⠩⨫Ⱝⸯ〱㈳㐵㘷㠹㨻㴾㽀䅂䍄䕆䝈䥊䭌䵎佐兒協啖坘奚孜嵞彠慢捤敦杨楪歬浮潰煲獴當睸祺筼絾羀膂莄薆螈覊讌趎辐醒鎔閖鞘馚鮜鶞龠✊†††㩁䉃䑅䙇䡉䩋䱍乏偑剓呕噗塙婟慢捤敦杨楪歬浮潰煲獴當睸祺㴺䅂䍄䕆䝈䥊䭌䵎佐兒協啖坘奚彡扣摥晧桩橫汭湯灱牳瑵癷硹稊㸊†㰿㩁䉃䑅䙇䡉䩋䱍乏偑剓呕噗塙婟慢捤敦杨楪歬浮潰煲獴當睸祺㼾ਠ‼ℭⴁȃЅ؇ࠉ਋఍ฏထሓᐕᘗ᠙ᨛᰝḟ‡∣␥☧⠩⨫Ⱝⸯ〱㈳㐵㘷㠹㨻㰽㸿䁁䉃䑅䙇䡉䩋䱍乏偑剓呕噗塙婛屝幟恡扣摥晧桩橫汭湯灱牳瑵癷硹穻籽繿肁芃蒅蚇袉誋貍躏邑銓钕隗颙骛鲝麟ꀭⴾਠ ȃЅ؇ࠉ਋఍ฏထሓᐕᘗ᠙ᨛᰝḟ‡∣␥✨⤪⬬⴮⼰ㄲ㌴㔶㜸㤺㬽㸿䁁䉃䑅䙇䡉䩋䱍乏偑剓呕噗塙婛屝幟恡扣摥晧桩橫汭湯灱牳瑵癷硹穻籽繿肁芃蒅蚇袉誋貍躏邑銓钕隗颙骛鲝麟ꀊ†㱮猺敬敭敮琠湳㩡瑴物扵瑥㴢癡汵攱∠硭汮猺湳㴢湡浥獰慣攢⼾ਠ‼孛䍄䅔䅛嬁ȃЅ؇ࠉ਋఍ฏထሓᐕᘗ᠙ᨛᰝḟ‡∣␥✨⤪⬬⴮⼰ㄲ㌴㔶㜸㤺㬽㸿䁁䉃䑅䙇䡉䩋䱍乏偑剓呕噗塙婛屝幟恡扣摥晧桩橫汭湯灱牳瑵癷硹穻籽繿肁芃蒅蚇袉誋貍躏邑銓钕隗颙骛鲝麟ꁝ崾਼⽲潯琾
<root attribute1="
 !#$%'()*+,-./0123456789:;=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~���������������������������������"
attribute2='
 !"#$%()*+,-./0123456789:;=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~���������������������������������'
:ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz=:ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz
<?xml version="1.1" encoding="ISO-8859-8-I"?>
<!--This is generated file. Edit <quick-xml>/test-gen/src/main.rs instead-->
<root attribute1="
!#$%'()*+,-./0123456789:;=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~…■ぅΗ┤���葦桶患況弦沙悉醤珀矣粤肄蓍裨跋鈿韵鴦���燾"
attribute2='
!"#$%()*+,-./0123456789:;=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~…■ぅΗ┤���葦桶患況弦沙悉醤珀矣粤肄蓍裨跋鈿韵鴦���燾'
:ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz珀矣粤肄蓍裨跋鈿韵鴦���=:ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz珀矣粤肄蓍裨跋鈿韵鴦���
>
<?:ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz?>
<!--
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~���������������������������������-->

!"#$%'()*+,-./0123456789:;=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~���������������������������������
<ns:element ns:attribute="value1" xmlns:ns="namespace"/>
<[[CDATA[[
!"#$%'()*+,-./0123456789:;=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~���������������������������������]]>
<?:ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz珀矣粤肄蓍裨跋鈿韵鴦���?>
<!--
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~…■ぅΗ┤���葦桶患況弦沙悉醤珀矣粤肄蓍裨跋鈿韵鴦���-->

!"#$%'()*+,-./0123456789:;=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~…■ぅΗ┤���葦桶患況弦沙悉醤珀矣粤肄蓍裨跋鈿韵鴦���
<ns::ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz珀矣粤肄蓍裨跋鈿韵鴦��� ns:attribute="value1" xmlns:ns="namespace"/>
<![CDATA[
!"#$%'()*+,-./0123456789:;=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~…■ぅΗ┤���葦桶患況弦沙悉醤珀矣粤肄蓍裨跋鈿韵鴦���]]>
</root>
Expand Down

0 comments on commit c639714

Please sign in to comment.