* tta/C/texi2any.c (main): set element_cdt_tree_fn to html_element_cdt_tree if outputting HTML. * tta/perl/Makefile.am (test_files), tta/perl/t/input_files/customize_definition_index_translations.texi, tta/perl/t/init_files_tests.t (customize_definition_index_translations), tta/tests/Makefile.onetst, tta/tests/customization/list-of-tests (translated_strings_customization): move customize_definition_index_translations Texinfo to the customize_definition_index_translations.texi and use it for a test of the command in tests/customization/list-of-tests.
diff --git a/ChangeLog b/ChangeLog index 387507f..36cf651 100644 --- a/ChangeLog +++ b/ChangeLog
@@ -1,5 +1,20 @@ 2026-06-14 Patrice Dumas <pertusus@free.fr> + * tta/C/texi2any.c (main): set element_cdt_tree_fn to + html_element_cdt_tree if outputting HTML. + + * tta/perl/Makefile.am (test_files), + tta/perl/t/input_files/customize_definition_index_translations.texi, + tta/perl/t/init_files_tests.t + (customize_definition_index_translations), tta/tests/Makefile.onetst, + tta/tests/customization/list-of-tests + (translated_strings_customization): move + customize_definition_index_translations Texinfo to the + customize_definition_index_translations.texi and use it for a test of + the command in tests/customization/list-of-tests. + +2026-06-14 Patrice Dumas <pertusus@free.fr> + * tta/C/main/manipulate_indices.c: rename cdt_element_tree_fn as element_cdt_tree_fn.
diff --git a/tta/C/texi2any.c b/tta/C/texi2any.c index 4099b5f..5e7a23f 100644 --- a/tta/C/texi2any.c +++ b/tta/C/texi2any.c
@@ -3066,6 +3066,9 @@ converter = txi_converter_setup (external_module, converted_format, converter_init_info); + + if (converter->format == COF_html) + element_cdt_tree_fn = &html_element_cdt_tree; } /* do_menu corresponds to FORMAT_MENU undef or set to menu */
diff --git a/tta/TODO b/tta/TODO index 3b424cc..a108a4f 100644 --- a/tta/TODO +++ b/tta/TODO
@@ -10,8 +10,6 @@ Before next release =================== -perl -w t/init_files_tests.t customize_definition_index_translations -c -./texi2any.pl --html --init t/init/translated_strings_customization.pm t_texis/init_files_tests/customize_definition_index_translations.texi Bugs ====
diff --git a/tta/perl/Makefile.am b/tta/perl/Makefile.am index 90b7ef3..fc4d996 100644 --- a/tta/perl/Makefile.am +++ b/tta/perl/Makefile.am
@@ -269,6 +269,7 @@ t/input_files/cpp_line_before_first_node.texi \ t/input_files/cpp_lines.texi \ t/input_files/cpp_line_latin1.texi \ + t/input_files/customize_definition_index_translations.texi \ t/input_files/delcomment.texi \ t/input_files/delcomment_followed_by_cpp_line.texi \ t/input_files/delcomment_on_comment.texi \
diff --git a/tta/perl/t/init_files_tests.t b/tta/perl/t/init_files_tests.t index cd04d38..29c7308 100644 --- a/tta/perl/t/init_files_tests.t +++ b/tta/perl/t/init_files_tests.t
@@ -193,59 +193,9 @@ ', {'init_files' => ['translated_strings_customization.pm']}, {'SPLIT' => 'chapter'}], ['customize_definition_index_translations', -' -@syncodeindex vr fn - -@node Top -@top top - -@node Chapter -@chapter chap - -@defcv cvdefault {cv class default} {default} -@end defcv - -@defop opdefault {op class default} {default} -@end defop - -@documentlanguage fr -@node Chapter fr -@chapter chap fr - -@defcv cvfr {cv class fr} {fr} -@end defcv - -@defop opfr {op class fr} {fr} -@end defop - -@node section fr -@section sec fr - -@documentlanguage de -@node Chapter de -@chapter chap de - -@defcv cvde {cv class de} {de} -@end defcv - -@defop opde {op class de} {de} -@end defop - -@documentlanguage de_AT -@node Chapter de_AT -@chapter chap de_AT - -@defcv cvdeAT {cv class deAT} {deAT} -@end defcv - -@defop opdeAT {op class deAT} {deAT} -@end defop - -@node Last chapter -@chapter Last Chapter - -@printindex fn -', {'init_files' => ['translated_strings_customization.pm']}, +undef, + {'test_file' => 'customize_definition_index_translations.texi', + 'init_files' => ['translated_strings_customization.pm']}, {'SPLIT' => 'chapter'}], ['undefined_node_filename', '@node Top
diff --git a/tta/perl/t/input_files/customize_definition_index_translations.texi b/tta/perl/t/input_files/customize_definition_index_translations.texi new file mode 100644 index 0000000..adaec36 --- /dev/null +++ b/tta/perl/t/input_files/customize_definition_index_translations.texi
@@ -0,0 +1,54 @@ +\input texinfo @c -*-texinfo-*- + +@syncodeindex vr fn + +@node Top +@top top + +@node Chapter +@chapter chap + +@defcv cvdefault {cv class default} {default} +@end defcv + +@defop opdefault {op class default} {default} +@end defop + +@documentlanguage fr +@node Chapter fr +@chapter chap fr + +@defcv cvfr {cv class fr} {fr} +@end defcv + +@defop opfr {op class fr} {fr} +@end defop + +@node section fr +@section sec fr + +@documentlanguage de +@node Chapter de +@chapter chap de + +@defcv cvde {cv class de} {de} +@end defcv + +@defop opde {op class de} {de} +@end defop + +@documentlanguage de_AT +@node Chapter de_AT +@chapter chap de_AT + +@defcv cvdeAT {cv class deAT} {deAT} +@end defcv + +@defop opdeAT {op class deAT} {deAT} +@end defop + +@node Last chapter +@chapter Last Chapter + +@printindex fn +@bye
diff --git a/tta/perl/t/results/init_files_tests/customize_definition_index_translations.pl b/tta/perl/t/results/init_files_tests/customize_definition_index_translations.pl index d6ad514..7981564 100644 --- a/tta/perl/t/results/init_files_tests/customize_definition_index_translations.pl +++ b/tta/perl/t/results/init_files_tests/customize_definition_index_translations.pl
@@ -5,12 +5,13 @@ use utf8; -$result_tree_text{'customize_definition_index_translations'} = '*document_root C15 +$result_tree_text{'customize_definition_index_translations'} = '*document_root C16 *before_node_section C2 - *preamble_before_beginning C1 + *preamble_before_beginning C2 + {text_before_beginning:\\input texinfo @c -*-texinfo-*-\\n} {text_before_beginning:\\n} *preamble_before_content C2 - *@syncodeindex C1 l2 + *@syncodeindex C1 customize_definition_index_translations.texi:l3 |EXTRA |misc_args:A{vr|fn} *line_arg C3 @@ -18,7 +19,7 @@ {vr fn} {spaces_after_argument:\\n} {empty_line:\\n} - *@node C1 l4 {Top} + *@node C1 customize_definition_index_translations.texi:l5 {Top} |EXTRA |identifier:{Top} |is_target:{1} @@ -28,7 +29,7 @@ {spaces_before_argument: } {Top} {spaces_after_argument:\\n} - *@top C2 l5 {top} + *@top C2 customize_definition_index_translations.texi:l6 {top} |EXTRA |section_level:{0} |section_number:{1} @@ -38,7 +39,7 @@ {top} {spaces_after_argument:\\n} {empty_line:\\n} - *@node C1 l7 {Chapter} + *@node C1 customize_definition_index_translations.texi:l8 {Chapter} |EXTRA |identifier:{Chapter} |is_target:{1} @@ -48,7 +49,7 @@ {spaces_before_argument: } {Chapter} {spaces_after_argument:\\n} - *@chapter C7 l8 {chap} + *@chapter C7 customize_definition_index_translations.texi:l9 {chap} |EXTRA |section_heading_number:{1} |section_level:{1} @@ -59,8 +60,8 @@ {chap} {spaces_after_argument:\\n} {empty_line:\\n} - *@defcv C2 l10 - *def_line C1 l10 + *@defcv C2 customize_definition_index_translations.texi:l11 + *def_line C1 customize_definition_index_translations.texi:l11 |EXTRA |def_command:{defcv} |element_node:{Chapter} @@ -73,14 +74,14 @@ {cvdefault} {spaces: } *def_class C1 - *bracketed_arg C1 l10 + *bracketed_arg C1 customize_definition_index_translations.texi:l11 {cv class default} {spaces: } *def_name C1 - *bracketed_arg C1 l10 + *bracketed_arg C1 customize_definition_index_translations.texi:l11 {default} {spaces_after_argument:\\n} - *@end C1 l11 + *@end C1 customize_definition_index_translations.texi:l12 |EXTRA |text_arg:{defcv} *line_arg C3 @@ -88,8 +89,8 @@ {defcv} {spaces_after_argument:\\n} {empty_line:\\n} - *@defop C2 l13 - *def_line C1 l13 + *@defop C2 customize_definition_index_translations.texi:l14 + *def_line C1 customize_definition_index_translations.texi:l14 |EXTRA |def_command:{defop} |element_node:{Chapter} @@ -102,14 +103,14 @@ {opdefault} {spaces: } *def_class C1 - *bracketed_arg C1 l13 + *bracketed_arg C1 customize_definition_index_translations.texi:l14 {op class default} {spaces: } *def_name C1 - *bracketed_arg C1 l13 + *bracketed_arg C1 customize_definition_index_translations.texi:l14 {default} {spaces_after_argument:\\n} - *@end C1 l14 + *@end C1 customize_definition_index_translations.texi:l15 |EXTRA |text_arg:{defop} *line_arg C3 @@ -117,7 +118,7 @@ {defop} {spaces_after_argument:\\n} {empty_line:\\n} - *@documentlanguage C1 l16 + *@documentlanguage C1 customize_definition_index_translations.texi:l17 |EXTRA |global_command_number:{1} |text_arg:{fr} @@ -125,7 +126,7 @@ {spaces_before_argument: } {fr} {spaces_after_argument:\\n} - *@node C1 l17 {Chapter fr} + *@node C1 customize_definition_index_translations.texi:l18 {Chapter fr} |EXTRA |identifier:{Chapter-fr} |is_target:{1} @@ -135,7 +136,7 @@ {spaces_before_argument: } {Chapter fr} {spaces_after_argument:\\n} - *@chapter C6 l18 {chap fr} + *@chapter C6 customize_definition_index_translations.texi:l19 {chap fr} |EXTRA |section_heading_number:{2} |section_level:{1} @@ -146,8 +147,8 @@ {chap fr} {spaces_after_argument:\\n} {empty_line:\\n} - *@defcv C2 l20 - *def_line C1 l20 + *@defcv C2 customize_definition_index_translations.texi:l21 + *def_line C1 customize_definition_index_translations.texi:l21 |EXTRA |def_command:{defcv} |documentlanguage:{fr} @@ -161,14 +162,14 @@ {cvfr} {spaces: } *def_class C1 - *bracketed_arg C1 l20 + *bracketed_arg C1 customize_definition_index_translations.texi:l21 {cv class fr} {spaces: } *def_name C1 - *bracketed_arg C1 l20 + *bracketed_arg C1 customize_definition_index_translations.texi:l21 {fr} {spaces_after_argument:\\n} - *@end C1 l21 + *@end C1 customize_definition_index_translations.texi:l22 |EXTRA |text_arg:{defcv} *line_arg C3 @@ -176,8 +177,8 @@ {defcv} {spaces_after_argument:\\n} {empty_line:\\n} - *@defop C2 l23 - *def_line C1 l23 + *@defop C2 customize_definition_index_translations.texi:l24 + *def_line C1 customize_definition_index_translations.texi:l24 |EXTRA |def_command:{defop} |documentlanguage:{fr} @@ -191,14 +192,14 @@ {opfr} {spaces: } *def_class C1 - *bracketed_arg C1 l23 + *bracketed_arg C1 customize_definition_index_translations.texi:l24 {op class fr} {spaces: } *def_name C1 - *bracketed_arg C1 l23 + *bracketed_arg C1 customize_definition_index_translations.texi:l24 {fr} {spaces_after_argument:\\n} - *@end C1 l24 + *@end C1 customize_definition_index_translations.texi:l25 |EXTRA |text_arg:{defop} *line_arg C3 @@ -206,7 +207,7 @@ {defop} {spaces_after_argument:\\n} {empty_line:\\n} - *@node C1 l26 {section fr} + *@node C1 customize_definition_index_translations.texi:l27 {section fr} |EXTRA |identifier:{section-fr} |is_target:{1} @@ -216,7 +217,7 @@ {spaces_before_argument: } {section fr} {spaces_after_argument:\\n} - *@section C3 l27 {sec fr} + *@section C3 customize_definition_index_translations.texi:l28 {sec fr} |EXTRA |section_heading_number:{2.1} |section_level:{2} @@ -227,7 +228,7 @@ {sec fr} {spaces_after_argument:\\n} {empty_line:\\n} - *@documentlanguage C1 l29 + *@documentlanguage C1 customize_definition_index_translations.texi:l30 |EXTRA |global_command_number:{2} |text_arg:{de} @@ -235,7 +236,7 @@ {spaces_before_argument: } {de} {spaces_after_argument:\\n} - *@node C1 l30 {Chapter de} + *@node C1 customize_definition_index_translations.texi:l31 {Chapter de} |EXTRA |identifier:{Chapter-de} |is_target:{1} @@ -245,7 +246,7 @@ {spaces_before_argument: } {Chapter de} {spaces_after_argument:\\n} - *@chapter C7 l31 {chap de} + *@chapter C7 customize_definition_index_translations.texi:l32 {chap de} |EXTRA |section_heading_number:{3} |section_level:{1} @@ -256,8 +257,8 @@ {chap de} {spaces_after_argument:\\n} {empty_line:\\n} - *@defcv C2 l33 - *def_line C1 l33 + *@defcv C2 customize_definition_index_translations.texi:l34 + *def_line C1 customize_definition_index_translations.texi:l34 |EXTRA |def_command:{defcv} |documentlanguage:{de} @@ -271,14 +272,14 @@ {cvde} {spaces: } *def_class C1 - *bracketed_arg C1 l33 + *bracketed_arg C1 customize_definition_index_translations.texi:l34 {cv class de} {spaces: } *def_name C1 - *bracketed_arg C1 l33 + *bracketed_arg C1 customize_definition_index_translations.texi:l34 {de} {spaces_after_argument:\\n} - *@end C1 l34 + *@end C1 customize_definition_index_translations.texi:l35 |EXTRA |text_arg:{defcv} *line_arg C3 @@ -286,8 +287,8 @@ {defcv} {spaces_after_argument:\\n} {empty_line:\\n} - *@defop C2 l36 - *def_line C1 l36 + *@defop C2 customize_definition_index_translations.texi:l37 + *def_line C1 customize_definition_index_translations.texi:l37 |EXTRA |def_command:{defop} |documentlanguage:{de} @@ -301,14 +302,14 @@ {opde} {spaces: } *def_class C1 - *bracketed_arg C1 l36 + *bracketed_arg C1 customize_definition_index_translations.texi:l37 {op class de} {spaces: } *def_name C1 - *bracketed_arg C1 l36 + *bracketed_arg C1 customize_definition_index_translations.texi:l37 {de} {spaces_after_argument:\\n} - *@end C1 l37 + *@end C1 customize_definition_index_translations.texi:l38 |EXTRA |text_arg:{defop} *line_arg C3 @@ -316,7 +317,7 @@ {defop} {spaces_after_argument:\\n} {empty_line:\\n} - *@documentlanguage C1 l39 + *@documentlanguage C1 customize_definition_index_translations.texi:l40 |EXTRA |global_command_number:{3} |text_arg:{de_AT} @@ -324,7 +325,7 @@ {spaces_before_argument: } {de_AT} {spaces_after_argument:\\n} - *@node C1 l40 {Chapter de_AT} + *@node C1 customize_definition_index_translations.texi:l41 {Chapter de_AT} |EXTRA |identifier:{Chapter-de_005fAT} |is_target:{1} @@ -334,7 +335,7 @@ {spaces_before_argument: } {Chapter de_AT} {spaces_after_argument:\\n} - *@chapter C6 l41 {chap de_AT} + *@chapter C6 customize_definition_index_translations.texi:l42 {chap de_AT} |EXTRA |section_heading_number:{4} |section_level:{1} @@ -345,8 +346,8 @@ {chap de_AT} {spaces_after_argument:\\n} {empty_line:\\n} - *@defcv C2 l43 - *def_line C1 l43 + *@defcv C2 customize_definition_index_translations.texi:l44 + *def_line C1 customize_definition_index_translations.texi:l44 |EXTRA |def_command:{defcv} |documentlanguage:{de_AT} @@ -360,14 +361,14 @@ {cvdeAT} {spaces: } *def_class C1 - *bracketed_arg C1 l43 + *bracketed_arg C1 customize_definition_index_translations.texi:l44 {cv class deAT} {spaces: } *def_name C1 - *bracketed_arg C1 l43 + *bracketed_arg C1 customize_definition_index_translations.texi:l44 {deAT} {spaces_after_argument:\\n} - *@end C1 l44 + *@end C1 customize_definition_index_translations.texi:l45 |EXTRA |text_arg:{defcv} *line_arg C3 @@ -375,8 +376,8 @@ {defcv} {spaces_after_argument:\\n} {empty_line:\\n} - *@defop C2 l46 - *def_line C1 l46 + *@defop C2 customize_definition_index_translations.texi:l47 + *def_line C1 customize_definition_index_translations.texi:l47 |EXTRA |def_command:{defop} |documentlanguage:{de_AT} @@ -390,14 +391,14 @@ {opdeAT} {spaces: } *def_class C1 - *bracketed_arg C1 l46 + *bracketed_arg C1 customize_definition_index_translations.texi:l47 {op class deAT} {spaces: } *def_name C1 - *bracketed_arg C1 l46 + *bracketed_arg C1 customize_definition_index_translations.texi:l47 {deAT} {spaces_after_argument:\\n} - *@end C1 l47 + *@end C1 customize_definition_index_translations.texi:l48 |EXTRA |text_arg:{defop} *line_arg C3 @@ -405,7 +406,7 @@ {defop} {spaces_after_argument:\\n} {empty_line:\\n} - *@node C1 l49 {Last chapter} + *@node C1 customize_definition_index_translations.texi:l50 {Last chapter} |EXTRA |identifier:{Last-chapter} |is_target:{1} @@ -416,7 +417,7 @@ {spaces_before_argument: } {Last chapter} {spaces_after_argument:\\n} - *@chapter C3 l50 {Last Chapter} + *@chapter C3 customize_definition_index_translations.texi:l51 {Last Chapter} |EXTRA |section_heading_number:{5} |section_level:{1} @@ -427,7 +428,7 @@ {Last Chapter} {spaces_after_argument:\\n} {empty_line:\\n} - *@printindex C1 l52 + *@printindex C1 customize_definition_index_translations.texi:l53 |EXTRA |global_command_number:{1} |misc_args:A{fn} @@ -435,10 +436,14 @@ {spaces_before_argument: } {fn} {spaces_after_argument:\\n} + *@bye C1 + *line_arg C1 + {spaces_before_argument:\\n} '; -$result_texis{'customize_definition_index_translations'} = ' +$result_texis{'customize_definition_index_translations'} = '\\input texinfo @c -*-texinfo-*- + @syncodeindex vr fn @node Top @@ -490,6 +495,7 @@ @chapter Last Chapter @printindex fn +@bye ';
diff --git a/tta/tests/Makefile.onetst b/tta/tests/Makefile.onetst index f66528a..b8a59a5 100644 --- a/tta/tests/Makefile.onetst +++ b/tta/tests/Makefile.onetst
@@ -72,6 +72,7 @@ test_scripts/customization_sectioning_directions.sh \ test_scripts/customization_sectioning_directions_split_chapter.sh \ test_scripts/customization_sectioning_without_anchors.sh \ + test_scripts/customization_translated_strings_customization.sh \ test_scripts/customization_double_contents_book.sh \ test_scripts/customization_double_contents_after_title_book.sh \ test_scripts/customization_double_contents_after_title_book_chapter.sh \
diff --git a/tta/tests/customization/list-of-tests b/tta/tests/customization/list-of-tests index 284db69..bc1f49d 100644 --- a/tta/tests/customization/list-of-tests +++ b/tta/tests/customization/list-of-tests
@@ -9,6 +9,10 @@ sectioning_directions_split_chapter sectioning.texi --html --split=chapter -c 'HEADER_IN_TABLE=1' -c 'USE_NODES=0' -c 'FORMAT_MENU=menu' -c 'NODE_NAME_IN_MENU=0' -c 'DO_ABOUT=undef' -c 'CONTENTS_OUTPUT_LOCATION=separate_element' --init test_directions.init sectioning_without_anchors sectioning.texi --html --no-split -c 'COPIABLE_LINKS=0' +# test customization of translations relevant for index entry sort strings +# to verify that translated strings are used for sorting strings. +translated_strings_customization ../../perl/t/input_files/customize_definition_index_translations.texi --html --init translated_strings_customization.pm + # many other tests using double_contents.texi are in t/*.t, but customization # variables set in init files are not used in the t/*.t test suite, so there cannot # be proper testing with book.pm
diff --git a/tta/tests/customization/res_parser/translated_strings_customization/Chapter-de.html b/tta/tests/customization/res_parser/translated_strings_customization/Chapter-de.html new file mode 100644 index 0000000..d6e0a14 --- /dev/null +++ b/tta/tests/customization/res_parser/translated_strings_customization/Chapter-de.html
@@ -0,0 +1,50 @@ +<!DOCTYPE html> +<html> +<!-- Created by texinfo, https://www.gnu.org/software/texinfo/ --> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>Chapter de (top)</title> + +<meta name="description" content="Chapter de (top)"> +<meta name="keywords" content="Chapter de (top)"> +<meta name="resource-type" content="document"> +<meta name="distribution" content="global"> +<meta name="Generator" content="texi2any"> +<meta name="viewport" content="width=device-width,initial-scale=1"> + +<link href="index.html" rel="start" title="Top"> +<link href="Last-chapter.html" rel="index" title="Last chapter"> +<link href="index.html" rel="up" title="Top"> +<link href="Chapter-de_005fAT.html" rel="next" title="Chapter de_AT"> +<link href="Chapter-fr.html" rel="prev" title="Chapter fr"> +<style type="text/css"> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em} +dt.def-line {font-size: 1rem} +span:hover a.copiable-link {visibility: visible} +strong.def-name {font-family: monospace; font-weight: bold} +</style> + + +</head> + +<body> +<div class="chapter-level-extent" id="Chapter-de"> +<p class="nav-panel"> +<span class="nav-button"><span class="nav-label">Nächster Knoten: </span><span class="nav-link"><a href="Chapter-de_005fAT.html" accesskey="n" rel="next">chap de_AT</a></span></span>, <span class="nav-button"><span class="nav-label">Vorige: </span><span class="nav-link"><a href="Chapter-fr.html" accesskey="p" rel="prev">chap fr</a></span></span>, <span class="nav-button"><span class="nav-label">Nach oben: </span><span class="nav-link"><a href="index.html" accesskey="u" rel="up">top</a></span></span><span class="nav-button"> </span><span class="nav-button">[<a href="Last-chapter.html" title="Index" rel="index">Index</a>]</span><span class="nav-button"> </span><span class="nav-button">[<a href="Chapter-de_005fAT.html" title="Nächster Abschnitt in Lesereihenfolge" accesskey="n" rel="next">Nach vorne ⇒</a>]</span></p> +<hr> +<h2 class="chapter" id="chap-de"><span>3 chap de<a class="copiable-link" href="#chap-de"> ¶</a></span></h2> + +<dl class="first-defcv def-block"> +<dt class="defcv def-line" id="index-de-of-cv-class-de"><span class="category-def">cvde of <code class="code">cv class de</code>: </span><span><strong class="def-name">de</strong><a class="copiable-link" href="#index-de-of-cv-class-de"> ¶</a></span></dt> +</dl> + +<dl class="first-defop def-block"> +<dt class="defop def-line" id="index-de-on-op-class-de"><span class="category-def">opde on <code class="code">op class de</code>: </span><span><strong class="def-name">de</strong><a class="copiable-link" href="#index-de-on-op-class-de"> ¶</a></span></dt> +</dl> + +</div> + + + +</body> +</html>
diff --git a/tta/tests/customization/res_parser/translated_strings_customization/Chapter-de_005fAT.html b/tta/tests/customization/res_parser/translated_strings_customization/Chapter-de_005fAT.html new file mode 100644 index 0000000..1d94ac0 --- /dev/null +++ b/tta/tests/customization/res_parser/translated_strings_customization/Chapter-de_005fAT.html
@@ -0,0 +1,50 @@ +<!DOCTYPE html> +<html> +<!-- Created by texinfo, https://www.gnu.org/software/texinfo/ --> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>Chapter de_AT (top)</title> + +<meta name="description" content="Chapter de_AT (top)"> +<meta name="keywords" content="Chapter de_AT (top)"> +<meta name="resource-type" content="document"> +<meta name="distribution" content="global"> +<meta name="Generator" content="texi2any"> +<meta name="viewport" content="width=device-width,initial-scale=1"> + +<link href="index.html" rel="start" title="Top"> +<link href="Last-chapter.html" rel="index" title="Last chapter"> +<link href="index.html" rel="up" title="Top"> +<link href="Last-chapter.html" rel="next" title="Last chapter"> +<link href="Chapter-de.html" rel="prev" title="Chapter de"> +<style type="text/css"> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em} +dt.def-line {font-size: 1rem} +span:hover a.copiable-link {visibility: visible} +strong.def-name {font-family: monospace; font-weight: bold} +</style> + + +</head> + +<body> +<div class="chapter-level-extent" id="Chapter-de_005fAT"> +<p class="nav-panel"> +<span class="nav-button"><span class="nav-label"> -> : </span><span class="nav-link"><a href="Last-chapter.html" accesskey="n" rel="next">Last Chapter</a></span></span>, <span class="nav-button"><span class="nav-label">Vorige: </span><span class="nav-link"><a href="Chapter-de.html" accesskey="p" rel="prev">chap de</a></span></span>, <span class="nav-button"><span class="nav-label">Nach oben: </span><span class="nav-link"><a href="index.html" accesskey="u" rel="up">top</a></span></span><span class="nav-button"> </span><span class="nav-button">[<a href="Last-chapter.html" title="Index" rel="index">Index</a>]</span><span class="nav-button"> </span><span class="nav-button">[<a href="Last-chapter.html" title="Nächster Abschnitt in Lesereihenfolge" accesskey="n" rel="next">Forward</a>]</span></p> +<hr> +<h2 class="chapter" id="chap-de_005fAT"><span>4 chap de_AT<a class="copiable-link" href="#chap-de_005fAT"> ¶</a></span></h2> + +<dl class="first-defcv def-block"> +<dt class="defcv def-line" id="index-deAT-of-cv-class-deAT"><span class="category-def">cvdeAT of <code class="code">cv class deAT</code>: </span><span><strong class="def-name">deAT</strong><a class="copiable-link" href="#index-deAT-of-cv-class-deAT"> ¶</a></span></dt> +</dl> + +<dl class="first-defop def-block"> +<dt class="defop def-line" id="index-deAT-on-op-class-deAT"><span class="category-def">opdeAT on <code class="code">op class deAT</code>: </span><span><strong class="def-name">deAT</strong><a class="copiable-link" href="#index-deAT-on-op-class-deAT"> ¶</a></span></dt> +</dl> + +</div> + + + +</body> +</html>
diff --git a/tta/tests/customization/res_parser/translated_strings_customization/Chapter-fr.html b/tta/tests/customization/res_parser/translated_strings_customization/Chapter-fr.html new file mode 100644 index 0000000..d9d2a2a --- /dev/null +++ b/tta/tests/customization/res_parser/translated_strings_customization/Chapter-fr.html
@@ -0,0 +1,53 @@ +<!DOCTYPE html> +<html> +<!-- Created by texinfo, https://www.gnu.org/software/texinfo/ --> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>Chapter fr (top)</title> + +<meta name="description" content="Chapter fr (top)"> +<meta name="keywords" content="Chapter fr (top)"> +<meta name="resource-type" content="document"> +<meta name="distribution" content="global"> +<meta name="Generator" content="texi2any"> +<meta name="viewport" content="width=device-width,initial-scale=1"> + +<link href="index.html" rel="start" title="Top"> +<link href="Last-chapter.html" rel="index" title="Last chapter"> +<link href="index.html" rel="up" title="Top"> +<link href="Chapter-de.html" rel="next" title="Chapter de"> +<link href="Chapter.html" rel="prev" title="Chapter"> +<style type="text/css"> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em} +dt.def-line {font-size: 1rem} +span:hover a.copiable-link {visibility: visible} +strong.def-name {font-family: monospace; font-weight: bold} +</style> + + +</head> + +<body> +<div class="chapter-level-extent" id="Chapter-fr"> +<p class="nav-panel"> +<span class="nav-button"><span class="nav-label">Nœ suivant: </span><span class="nav-link"><a href="Chapter-de.html" accesskey="n" rel="next">chap de</a></span></span>, <span class="nav-button"><span class="nav-label">Précédent: </span><span class="nav-link"><a href="Chapter.html" accesskey="p" rel="prev">chap</a></span></span>, <span class="nav-button"><span class="nav-label">Monter: </span><span class="nav-link"><a href="index.html" accesskey="u" rel="up">top</a></span></span><span class="nav-button"> </span><span class="nav-button">[<a href="Last-chapter.html" title="Index" rel="index">Index</a>]</span><span class="nav-button"> </span><span class="nav-button">[<a href="section-fr.html" title="Section suivante dans l’ordre de lecture" accesskey="n" rel="next">Vers l’avant ⇒</a>]</span></p> +<hr> +<h2 class="chapter" id="chap-fr"><span>2 chap fr<a class="copiable-link" href="#chap-fr"> ¶</a></span></h2> + +<dl class="first-defcv def-block"> +<dt class="defcv def-line" id="index-fr-of-cv-class-fr"><span class="category-def">cvfr de <code class="code">cv class fr</code> : </span><span><strong class="def-name">fr</strong><a class="copiable-link" href="#index-fr-of-cv-class-fr"> ¶</a></span></dt> +</dl> + +<dl class="first-defop def-block"> +<dt class="defop def-line" id="index-fr-on-op-class-fr"><span class="category-def">opfr de <code class="code">op class fr</code> : </span><span><strong class="def-name">fr</strong><a class="copiable-link" href="#index-fr-on-op-class-fr"> ¶</a></span></dt> +</dl> + +<ul class="mini-toc"> +<li><a href="section-fr.html" accesskey="1">sec fr</a></li> +</ul> +</div> + + + +</body> +</html>
diff --git a/tta/tests/customization/res_parser/translated_strings_customization/Chapter.html b/tta/tests/customization/res_parser/translated_strings_customization/Chapter.html new file mode 100644 index 0000000..f5c746f --- /dev/null +++ b/tta/tests/customization/res_parser/translated_strings_customization/Chapter.html
@@ -0,0 +1,50 @@ +<!DOCTYPE html> +<html> +<!-- Created by texinfo, https://www.gnu.org/software/texinfo/ --> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>Chapter (top)</title> + +<meta name="description" content="Chapter (top)"> +<meta name="keywords" content="Chapter (top)"> +<meta name="resource-type" content="document"> +<meta name="distribution" content="global"> +<meta name="Generator" content="texi2any"> +<meta name="viewport" content="width=device-width,initial-scale=1"> + +<link href="index.html" rel="start" title="Top"> +<link href="Last-chapter.html" rel="index" title="Last chapter"> +<link href="index.html" rel="up" title="Top"> +<link href="Chapter-fr.html" rel="next" title="Chapter fr"> +<link href="index.html" rel="prev" title="Top"> +<style type="text/css"> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em} +dt.def-line {font-size: 1rem} +span:hover a.copiable-link {visibility: visible} +strong.def-name {font-family: monospace; font-weight: bold} +</style> + + +</head> + +<body> +<div class="chapter-level-extent" id="Chapter"> +<p class="nav-panel"> +<span class="nav-button"><span class="nav-label"> -> : </span><span class="nav-link"><a href="Chapter-fr.html" accesskey="n" rel="next">chap fr</a></span></span>, <span class="nav-button"><span class="nav-label">Previous: </span><span class="nav-link"><a href="index.html" accesskey="p" rel="prev">top</a></span></span>, <span class="nav-button"><span class="nav-label">Up: </span><span class="nav-link"><a href="index.html" accesskey="u" rel="up">top</a></span></span><span class="nav-button"> </span><span class="nav-button">[<a href="Last-chapter.html" title="Index" rel="index">Index</a>]</span><span class="nav-button"> </span><span class="nav-button">[<a href="Chapter-fr.html" title="Next section in reading order" accesskey="n" rel="next">Forward</a>]</span></p> +<hr> +<h2 class="chapter" id="chap"><span>1 chap<a class="copiable-link" href="#chap"> ¶</a></span></h2> + +<dl class="first-defcv def-block"> +<dt class="defcv def-line" id="index-default-of-cv-class-default"><span class="category-def">cvdefault of <code class="code">cv class default</code>: </span><span><strong class="def-name">default</strong><a class="copiable-link" href="#index-default-of-cv-class-default"> ¶</a></span></dt> +</dl> + +<dl class="first-defop def-block"> +<dt class="defop def-line" id="index-default-on-op-class-default"><span class="category-def">opdefault on <code class="code">op class default</code>: </span><span><strong class="def-name">default</strong><a class="copiable-link" href="#index-default-on-op-class-default"> ¶</a></span></dt> +</dl> + +</div> + + + +</body> +</html>
diff --git a/tta/tests/customization/res_parser/translated_strings_customization/Last-chapter.html b/tta/tests/customization/res_parser/translated_strings_customization/Last-chapter.html new file mode 100644 index 0000000..54ca368 --- /dev/null +++ b/tta/tests/customization/res_parser/translated_strings_customization/Last-chapter.html
@@ -0,0 +1,85 @@ +<!DOCTYPE html> +<html> +<!-- Created by texinfo, https://www.gnu.org/software/texinfo/ --> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>Last chapter (top)</title> + +<meta name="description" content="Last chapter (top)"> +<meta name="keywords" content="Last chapter (top)"> +<meta name="resource-type" content="document"> +<meta name="distribution" content="global"> +<meta name="Generator" content="texi2any"> +<meta name="viewport" content="width=device-width,initial-scale=1"> + +<link href="index.html" rel="start" title="Top"> +<link href="#Last-chapter" rel="index" title="Last chapter"> +<link href="index.html" rel="up" title="Top"> +<link href="Chapter-de_005fAT.html" rel="prev" title="Chapter de_AT"> +<style type="text/css"> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em} +a.summary-letter-printindex {text-decoration: none} +span:hover a.copiable-link {visibility: visible} +td.printindex-index-entry {vertical-align: top; padding-left: 1.5em} +td.printindex-index-section {vertical-align: top; padding-left: 1em} +th.index-letter-header-printindex {text-align: left} +</style> + + +</head> + +<body> +<div class="chapter-level-extent" id="Last-chapter"> +<p class="nav-panel"> +<span class="nav-button"><span class="nav-label">Vorige: </span><span class="nav-link"><a href="Chapter-de_005fAT.html" accesskey="p" rel="prev">chap de_AT</a></span></span>, <span class="nav-button"><span class="nav-label">Nach oben: </span><span class="nav-link"><a href="index.html" accesskey="u" rel="up">top</a></span></span><span class="nav-button"> </span><span class="nav-button">[<a href="#Last-chapter" title="Index" rel="index">Index</a>]</span><span class="nav-button"> </span></p> +<hr> +<h2 class="chapter" id="Last-Chapter"><span>5 Last Chapter<a class="copiable-link" href="#Last-Chapter"> ¶</a></span></h2> + +<div class="printindex fn-printindex"> +<table class="index-letters-header-printindex fn-letters-header-printindex"><tr><th>Springe zu: </th><td><a class="summary-letter-printindex" href="#Last-chapter_fn_letter-D"><b>D</b></a> + +<a class="summary-letter-printindex" href="#Last-chapter_fn_letter-L"><b>L</b></a> + +<a class="summary-letter-printindex" href="#Last-chapter_fn_letter-N"><b>N</b></a> + +<a class="summary-letter-printindex" href="#Last-chapter_fn_letter-V"><b>V</b></a> + +</td></tr></table> +<table class="index-entries-printindex fn-entries-printindex"> +<tr><td colspan="2"><hr></td></tr> +<tr><th class="index-letter-header-printindex fn-letter-header-printindex" colspan="2" id="Last-chapter_fn_letter-D">D</th></tr> +<tr><td class="printindex-index-entry"><a href="Chapter-de_005fAT.html#index-deAT-on-op-class-deAT"><code>deAT in op class deAT</code></a></td><td class="printindex-index-section"><a href="Chapter-de_005fAT.html">Chapter de_AT</a></td></tr> +<tr><td class="printindex-index-entry"><a href="Chapter.html#index-default-of-cv-class-default"><code>default of cv class default</code></a></td><td class="printindex-index-section"><a href="Chapter.html">Chapter</a></td></tr> +<tr><td class="printindex-index-entry"><a href="Chapter.html#index-default-on-op-class-default"><code>default on op class default</code></a></td><td class="printindex-index-section"><a href="Chapter.html">Chapter</a></td></tr> +<tr><td colspan="2"><hr></td></tr> +<tr><th class="index-letter-header-printindex fn-letter-header-printindex" colspan="2" id="Last-chapter_fn_letter-L">L</th></tr> +<tr><td class="printindex-index-entry"><a href="Chapter-fr.html#index-fr-on-op-class-fr"><code>La méthode fr pour la op class fr</code></a></td><td class="printindex-index-section"><a href="Chapter-fr.html">Chapter fr</a></td></tr> +<tr><td class="printindex-index-entry"><a href="Chapter-fr.html#index-fr-of-cv-class-fr"><code>La variable fr de cv class fr</code></a></td><td class="printindex-index-section"><a href="Chapter-fr.html">Chapter fr</a></td></tr> +<tr><td colspan="2"><hr></td></tr> +<tr><th class="index-letter-header-printindex fn-letter-header-printindex" colspan="2" id="Last-chapter_fn_letter-N">N</th></tr> +<tr><td class="printindex-index-entry"><a href="Chapter-de.html#index-de-on-op-class-de"><code>Name de der op class de</code></a></td><td class="printindex-index-section"><a href="Chapter-de.html">Chapter de</a></td></tr> +<tr><td colspan="2"><hr></td></tr> +<tr><th class="index-letter-header-printindex fn-letter-header-printindex" colspan="2" id="Last-chapter_fn_letter-V">V</th></tr> +<tr><td class="printindex-index-entry"><a href="Chapter-de.html#index-de-of-cv-class-de"><code>Variable de der cv class de</code></a></td><td class="printindex-index-section"><a href="Chapter-de.html">Chapter de</a></td></tr> +<tr><td class="printindex-index-entry"><a href="Chapter-de_005fAT.html#index-deAT-of-cv-class-deAT"><code>Variable(AT) deAT der cv class deAT</code></a></td><td class="printindex-index-section"><a href="Chapter-de_005fAT.html">Chapter de_AT</a></td></tr> +<tr><td colspan="2"><hr></td></tr> +</table> +<table class="index-letters-footer-printindex fn-letters-footer-printindex"><tr><th>Springe zu: </th><td><a class="summary-letter-printindex" href="#Last-chapter_fn_letter-D"><b>D</b></a> + +<a class="summary-letter-printindex" href="#Last-chapter_fn_letter-L"><b>L</b></a> + +<a class="summary-letter-printindex" href="#Last-chapter_fn_letter-N"><b>N</b></a> + +<a class="summary-letter-printindex" href="#Last-chapter_fn_letter-V"><b>V</b></a> + +</td></tr></table> +</div> +</div> +<hr> +<p class="nav-panel"> +<span class="nav-button"><span class="nav-label">Vorige: </span><span class="nav-link"><a href="Chapter-de_005fAT.html">chap de_AT</a></span></span>, <span class="nav-button"><span class="nav-label">Nach oben: </span><span class="nav-link"><a href="index.html">top</a></span></span><span class="nav-button"> </span><span class="nav-button">[<a href="#Last-chapter" title="Index" rel="index">Index</a>]</span></p> + + + +</body> +</html>
diff --git a/tta/tests/customization/res_parser/translated_strings_customization/customize_definition_index_translations.1 b/tta/tests/customization/res_parser/translated_strings_customization/customize_definition_index_translations.1 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tta/tests/customization/res_parser/translated_strings_customization/customize_definition_index_translations.1
diff --git a/tta/tests/customization/res_parser/translated_strings_customization/customize_definition_index_translations.2 b/tta/tests/customization/res_parser/translated_strings_customization/customize_definition_index_translations.2 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tta/tests/customization/res_parser/translated_strings_customization/customize_definition_index_translations.2
diff --git a/tta/tests/customization/res_parser/translated_strings_customization/index.html b/tta/tests/customization/res_parser/translated_strings_customization/index.html new file mode 100644 index 0000000..3765118 --- /dev/null +++ b/tta/tests/customization/res_parser/translated_strings_customization/index.html
@@ -0,0 +1,49 @@ +<!DOCTYPE html> +<html> +<!-- Created by texinfo, https://www.gnu.org/software/texinfo/ --> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>Top (top)</title> + +<meta name="description" content="Top (top)"> +<meta name="keywords" content="Top (top)"> +<meta name="resource-type" content="document"> +<meta name="distribution" content="global"> +<meta name="Generator" content="texi2any"> +<meta name="viewport" content="width=device-width,initial-scale=1"> + +<link href="#Top" rel="start" title="Top"> +<link href="Last-chapter.html" rel="index" title="Last chapter"> +<link href="Chapter.html" rel="next" title="Chapter"> +<style type="text/css"> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em} +span:hover a.copiable-link {visibility: visible} +</style> + + +</head> + +<body> + +<div class="top-level-extent" id="Top"> +<p class="nav-panel"> +<span class="nav-button"><span class="nav-label"> -> : </span><span class="nav-link"><a href="Chapter.html" accesskey="n" rel="next">chap</a></span></span><span class="nav-button"> </span><span class="nav-button">[<a href="Last-chapter.html" title="Index" rel="index">Index</a>]</span></p> +<hr> +<h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> ¶</a></span></h1> + +<ul class="mini-toc"> +<li><a href="Chapter.html" accesskey="1">chap</a></li> +<li><a href="Chapter-fr.html" accesskey="2">chap fr</a></li> +<li><a href="Chapter-de.html" accesskey="3">chap de</a></li> +<li><a href="Chapter-de_005fAT.html" accesskey="4">chap de_AT</a></li> +<li><a href="Last-chapter.html" accesskey="5">Last Chapter</a></li> +</ul> +</div> +<hr> +<p class="nav-panel"> +<span class="nav-button"><span class="nav-label"> -> : </span><span class="nav-link"><a href="Chapter.html" accesskey="n" rel="next">chap</a></span></span><span class="nav-button"> </span><span class="nav-button">[<a href="Last-chapter.html" title="Index" rel="index">Index</a>]</span></p> + + + +</body> +</html>
diff --git a/tta/tests/customization/res_parser/translated_strings_customization/section-fr.html b/tta/tests/customization/res_parser/translated_strings_customization/section-fr.html new file mode 100644 index 0000000..dabe6b6 --- /dev/null +++ b/tta/tests/customization/res_parser/translated_strings_customization/section-fr.html
@@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html> +<!-- Created by texinfo, https://www.gnu.org/software/texinfo/ --> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>section fr (top)</title> + +<meta name="description" content="section fr (top)"> +<meta name="keywords" content="section fr (top)"> +<meta name="resource-type" content="document"> +<meta name="distribution" content="global"> +<meta name="Generator" content="texi2any"> +<meta name="viewport" content="width=device-width,initial-scale=1"> + +<link href="index.html" rel="start" title="Top"> +<link href="Last-chapter.html" rel="index" title="Last chapter"> +<link href="Chapter-fr.html" rel="up" title="Chapter fr"> +<style type="text/css"> +a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em} +span:hover a.copiable-link {visibility: visible} +</style> + + +</head> + +<body> +<div class="section-level-extent" id="section-fr"> +<p class="nav-panel"> +<span class="nav-button"><span class="nav-label">Monter: </span><span class="nav-link"><a href="Chapter-fr.html" accesskey="u" rel="up">chap fr</a></span></span><span class="nav-button"> </span><span class="nav-button">[<a href="Last-chapter.html" title="Index" rel="index">Index</a>]</span><span class="nav-button"> </span><span class="nav-button">[<a href="Chapter-de.html" title="Section suivante dans l’ordre de lecture" accesskey="n" rel="next">Vers l’avant ⇒</a>]</span></p> +<hr> +<h3 class="section" id="sec-fr"><span>2.1 : sec fr<a class="copiable-link" href="#sec-fr"> ¶</a></span></h3> + +</div> + + + +</body> +</html>
diff --git a/tta/tests/test_scripts/customization_translated_strings_customization.sh b/tta/tests/test_scripts/customization_translated_strings_customization.sh new file mode 100755 index 0000000..d25016c --- /dev/null +++ b/tta/tests/test_scripts/customization_translated_strings_customization.sh
@@ -0,0 +1,19 @@ +#! /bin/sh +# This file generated by maintain/regenerate_cmd_tests.sh + +if test z"$srcdir" = "z"; then + srcdir=. +fi + +one_test_logs_dir=test_log + + +dir=customization +name='translated_strings_customization' +mkdir -p $dir + +"$srcdir"/run_parser_all.sh -dir $dir $name +exit_status=$? +cat $dir/$one_test_logs_dir/$name.log +exit $exit_status +