Change #266228
| Category | texinfo |
| Changed by | Patrice Dumas <pertusus@free.fr> |
| Changed at | Sun 03 May 2026 21:21:46 |
| Repository | https://git.savannah.gnu.org/git/texinfo.git |
| Project | texinfo |
| Branch | master |
| Revision | 8b9e3ba47dbde67f4d16d8e9c2b68365a0d46558 |
Comments
* tta/C/convert/get_converter_perl_info.c (get_hv_lang_translation) (copy_sv_options_for_convert_text), tta/C/main/get_perl_info.c (get_lang_translation_sv), tta/perl/XSTexinfo/parser_document/TranslationsXS.xs (cache_translate_string): add get_hv_lang_translation and get_lang_translation_sv based on copy_sv_options_for_convert_text code. Use in TranslationsXS.xs cache_translate_string. * tta/C/api_for_swig/swig_interface.c (txi_ext_get_index_sorted_by_index), tta/C/convert/converter.c (get_converter_indices_sorted_by_index) (get_converter_indices_sorted_by_letter), tta/C/main/document.c (lang_info_sorting_locale, sorted_indices_by_index) (sorted_indices_by_letter, print_document_indices_sort_strings), tta/C/main/document.h (SORTING_LANG_INFO), tta/C/main/utils.c (new_sorting_lang_info), tta/perl/Texinfo/Convert/ConverterNonXS.pm (get_converter_indices_sorted_by_letter), tta/perl/Texinfo/Document.pm (sorted_indices_by_letter, sorted_indices_by_index), tta/perl/Texinfo/DocumentNonXS.pm (print_document_indices_sort_strings), tta/perl/XSTexinfo/convert/ConvertConverterXS.xs (get_converter_indices_sorted_by_index): setup information on language for sorting based COLLATION_LANGUAGE or on current lang translations lang_info in a SORTING_LANG_INFO structure in get_converter_indices_sorted_by_*, using new_sorting_lang_info in C. Use this information in sorted_indices_by_* to determine the language to use for sorting, based either on COLLATION_LANGUAGE or on the main language and script from the lang_info, using lang_info_sorting_locale in C. * tta/perl/Texinfo/Indices.pm (_setup_collator): rename $locale_lang as $lang_sorting_locale. * tta/tests/other/Makefile.am (EXTRA_DIST), tta/tests/other/index_collation_script_test.texi, tta/tests/other/list-of-tests (index_collation_script_test_documentlanguage_collation): add test with documentscript and DOCUMENTLANGUAGE_COLLATION set. This test is not final, as the order is not different with and without the documentscript for the selected index entries. * tta/tests/other/list-of-tests: comment out tests of XS_STRXFRM_COLLATION_LOCALE.
Changed files
- ChangeLog
- tta/C/api_for_swig/swig_interface.c
- tta/C/convert/converter.c
- tta/C/convert/get_converter_perl_info.c
- tta/C/convert/get_converter_perl_info.h
- tta/C/main/document.c
- tta/C/main/document.h
- tta/C/main/document_types.h
- tta/C/main/get_perl_info.c
- tta/C/main/get_perl_info.h
- tta/C/main/utils.c
- tta/C/main/utils.h
- tta/perl/Texinfo/Convert/ConverterNonXS.pm
- tta/perl/Texinfo/Convert/NodeNameNormalization.pm
- tta/perl/Texinfo/Document.pm
- tta/perl/Texinfo/DocumentNonXS.pm
- tta/perl/Texinfo/Indices.pm
- tta/perl/Texinfo/Translations.pm
- tta/perl/Texinfo/XSLoader.pm
- tta/perl/XSTexinfo/convert/ConvertConverterXS.xs
- tta/perl/XSTexinfo/parser_document/TranslationsXS.xs
- tta/tests/Makefile.onetst
- tta/tests/other/Makefile.am
- tta/tests/other/list-of-tests
- tta/tests/other/res_parser/index_collation_script_test_documentlanguage_collation/index_collation_script_test.1
- tta/tests/other/res_parser/index_collation_script_test_documentlanguage_collation/index_collation_script_test.2
- tta/tests/other/res_parser/index_collation_script_test_documentlanguage_collation/index_collation_script_test.txt
- tta/tests/test_scripts/other_index_collation_test_collation_locale_en.sh
- tta/tests/test_scripts/other_index_collation_test_collation_locale_en_US.sh
- tta/tests/test_scripts/other_index_collation_test_collation_locale_sv.sh