Skip to content

Commit

Permalink
fix index sort order
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelee committed Feb 25, 2024
1 parent 732e6cc commit 1a21223
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ Ideas for future expansion
- improved indexes
- unknown/ambiguous/etc references
- name formatting
- sorting aa/å etc

- possible option to disable name->id map in case of memory constraints

6 changes: 2 additions & 4 deletions latex/genealogy-profiles.sty
Original file line number Diff line number Diff line change
Expand Up @@ -243,17 +243,15 @@
% Names
%

\tl_const:Ne \c_gpr_underscore_tl { \char_generate:nn { `_ } { 8 } }

\cs_new_protected:Nn \gpr_name_handler:n
{
\tl_set:Nn \l__gpr_fullname_tl {#1}
\tl_replace_all:NVn \l__gpr_fullname_tl \c_gpr_underscore_tl { ~ }
\regex_replace_all:nnN { \s*_\s* } { \ } \l__gpr_fullname_tl

\seq_set_split:Nnn \l_tmpa_seq {~} {#1}
\seq_map_indexed_inline:Nn \g__gpr_name_part_order_seq {
\tl_set:Ne \l_tmpa_tl { \seq_item:Nn \l_tmpa_seq {##1} }
\tl_replace_all:NVn \l_tmpa_tl \c_gpr_underscore_tl { ~ }
\regex_replace_all:nnN { \s*_\s* } { \ } \l_tmpa_tl
\tl_if_blank:VTF \l_tmpa_tl {
\tl_clear:c { l__gpr_##2_tl }
} {
Expand Down
Binary file modified test/genprofile.pdf
Binary file not shown.

0 comments on commit 1a21223

Please sign in to comment.