Skip to content

Commit

Permalink
unify order of terms
Browse files Browse the repository at this point in the history
terms in toc & in page had different order b/c the terms in toc were
sorted by the human name and the terms in the pages and in the summary
(tsv) were sorted by the ascii order, which currently only made a
difference in abbreviated names (2fa -> two-...).  now all follow
the ascii sorting order.
  • Loading branch information
noureddin committed Jan 30, 2024
1 parent cf5937e commit 2bf6626
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion link/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
</section>
<section><h2><a class="other" href="../unstaged/">المصطلحات المؤجلة</a></h2>
<section class="toc">
<a href="../unstaged/#2fa" title="‫استيثاق ثنائي.‬">two-factor authentication (2FA)</a>
<a href="../unstaged/#authenticate" title="‫الفعل استَوثَق يَستَوثِق استِيثاقا، والأمر استَوثِق، والمفعول اُستُوثِق يُستُوثَق فهو مُستَوثَق.‬">authenticate</a>
<a href="../unstaged/#authentication" title="‫اسْتِيثَاق (ج: اسْتِيثَاقَات).‬">authentication</a>
<a href="../unstaged/#binary" title="‫للأعداد والعوامل: ثنائي. للملفات والبيانات: رقمي.‬">binary</a>
Expand All @@ -77,7 +78,6 @@
<a href="../unstaged/#cursor" title="‫مُؤَشِّر (ج: مُؤَشِّرَات).‬">cursor</a>
<a href="../unstaged/#pointer" title="‫للفأرة: مُؤَشِّر (ج: مُؤَشِّرَات). في البرمجة: مُشِير (ج: مُشِيرَات).‬">pointer</a>
<a href="../unstaged/#reference" title="‫في البرمجة: مُحِيل (ج: مُحِيلَات).‬">reference</a>
<a href="../unstaged/#2fa" title="‫استيثاق ثنائي.‬">two-factor authentication (2FA)</a>
<div class="emptytoc blurred" style="display:none">لا توجد مصطلحات متطابقة</div>
</section>
</section>
Expand Down
2 changes: 1 addition & 1 deletion p/make.pl
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ sub toc_links { # array of [$id, "#$id"]; returns a string '<section class="toc
my $sum = "\N{RIGHT-TO-LEFT EMBEDDING}$summs{$_->[2]}\N{POP DIRECTIONAL FORMATTING}";
qq[ <a href="$_->[1]" title="$sum">$_->[0]</a>\n]
}
sort { $a->[0] cmp $b->[0] }
sort { $a->[1] cmp $b->[1] }
map { [ human_title_of($_->[0]), $_->[1], $_->[0] ] }
@_
) . qq[ <div class="emptytoc blurred" style="display:none">لا توجد مصطلحات متطابقة</div>\n</section>];
Expand Down
2 changes: 1 addition & 1 deletion unstaged/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
</aside>
<input id="toc_filter" type="text" dir="ltr" placeholder="🔍 اكتب لتصفية روابط المصطلحات المعروضة">
<section class="toc">
<a href="#2fa" title="‫استيثاق ثنائي.‬">two-factor authentication (2FA)</a>
<a href="#authenticate" title="‫الفعل استَوثَق يَستَوثِق استِيثاقا، والأمر استَوثِق، والمفعول اُستُوثِق يُستُوثَق فهو مُستَوثَق.‬">authenticate</a>
<a href="#authentication" title="‫اسْتِيثَاق (ج: اسْتِيثَاقَات).‬">authentication</a>
<a href="#binary" title="‫للأعداد والعوامل: ثنائي. للملفات والبيانات: رقمي.‬">binary</a>
Expand All @@ -44,7 +45,6 @@
<a href="#cursor" title="‫مُؤَشِّر (ج: مُؤَشِّرَات).‬">cursor</a>
<a href="#pointer" title="‫للفأرة: مُؤَشِّر (ج: مُؤَشِّرَات). في البرمجة: مُشِير (ج: مُشِيرَات).‬">pointer</a>
<a href="#reference" title="‫في البرمجة: مُحِيل (ج: مُحِيلَات).‬">reference</a>
<a href="#2fa" title="‫استيثاق ثنائي.‬">two-factor authentication (2FA)</a>
<div class="emptytoc blurred" style="display:none">لا توجد مصطلحات متطابقة</div>
</section>
<article><h2 id="2fa"><a id="two-factor_authentication" dir="ltr" href="#2fa">two-factor authentication (2FA)</a></h2>
Expand Down

0 comments on commit 2bf6626

Please sign in to comment.