aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.dtx
AgeCommit message (Collapse)Author
2018-01-04typo!v1.10.2Robert Alessi
2018-01-04\prname{} something was still missing for ibn to be processed properlyRobert Alessi
2018-01-04updated to v1.10.1v1.10.1Robert Alessi
2018-01-04a typo in the documentationRobert Alessi
2018-01-04a typo in the documentationRobert Alessi
2018-01-03done documenting. getting close to v1.10v1.10Robert Alessi
2018-01-02documenting the features to be included in the next releaseRobert Alessi
2018-01-02redefined \changes{} to have the minor versions sorted as they ought toRobert Alessi
see http://tex.stackexchange.com/a/74113/7712
2018-01-02\cap{} was already defined in math mode, oh dear! replaced with \uc{}Robert Alessi
2018-01-02new command \prname{}; updated copyright datesRobert Alessi
2017-12-30a typo in the documentationRobert Alessi
2017-12-08commented out l.153 in arabluatex.dtx as the bug in dox has been fixedRobert Alessi
2017-11-06documentation update: \aemph* should be used to have the stroke printed over ↵Robert Alessi
the abjad number outside Arabic environments
2017-10-25a typo in the documentationRobert Alessi
2017-10-24a few additional remarks in the documentation; updated to v1.9.2v1.9.2Robert Alessi
2017-10-23done documenting for v1.9.2Robert Alessi
2017-10-23documenting the features to be included in v1.9.2Robert Alessi
2017-09-06bugfix: wrong redefinition of \aemph*Robert Alessi
2017-09-05new 'starred' \aemph* command which always puts the stroke over its argumentRobert Alessi
2017-09-05\aemph now outputs \underline instead of \overline in any of the ↵Robert Alessi
transliteration modes
2017-08-16bugfix: wrong vertical spacing at the end of the arabverse environmentRobert Alessi
2017-07-28updated to v1.9.1v1.9.1Robert Alessi
2017-07-07simplify the code of \LR|RLfootnote{}Robert Alessi
2017-07-05one additional point in the documentationv1.9Robert Alessi
2017-07-05a typoRobert Alessi
2017-07-04a typoRobert Alessi
2017-07-04documentation updated; getting close to v1.9Robert Alessi
2017-07-03the documentation now needs to be updatedRobert Alessi
2017-07-02new command \MkArbBreak{} for inserting user-defined single argument ↵Robert Alessi
commands in Arabic environments
2017-07-02some more examples of hamzah + pr. suffix in the documentationRobert Alessi
2017-06-30hamzah + pr. suffix: the carrier must pass into yāʾ before īRobert Alessi
2017-06-29li + art. + initial lām is to be transliterated as in 'li-l-lisāni' in dmg ↵Robert Alessi
mode. start updating the documentation
2017-06-26bugfix: initial hamzah after hyphen was broken; a couple of typosRobert Alessi
2017-06-25final yāʾ without dots, \textcolor: updating the documentationRobert Alessi
2017-06-25basic support for \textcolor in Arabic environmentRobert Alessi
2017-06-25get the rid of \arbcolor which is not actually neededRobert Alessi
2017-06-24new command \arbcolor which does the same as \textcolor in Arabic environmentsRobert Alessi
2017-06-20udpated to v.1.8.5Robert Alessi
2017-06-20additional Persian characters: documentation updatedRobert Alessi
2017-06-15a typo in the documentationRobert Alessi
2017-05-11babel-french: \frenchsetup is intended to replace \frenchbsetup; update the ↵Robert Alessi
documentation
2017-05-06updated to v1.8.4v1.8.4Robert Alessi
2017-04-27a typo in arabluatex.bibv1.8.3Robert Alessi
2017-04-27updated to v.1.8.3Robert Alessi
2017-04-02this is v1.8.2v1.8.2Robert Alessi
2017-04-02updated checksum and documentationRobert Alessi
2017-04-02new \Cap command that does the same as \cap but is never discarded; it is ↵Robert Alessi
used internally to protect \cap when it is necessary
2017-04-01the implementation of the 'arabica' transliteration needed more work; a ↵v1.8.1Robert Alessi
couple of bugs also found their way into v1.8 in the process
2017-03-30rephrased one sentence. this is v1.8v1.8Robert Alessi
2017-03-30arabica: updated documentationRobert Alessi
83; font-style:italic">--[[ This file is part of the `arabluatex' package ArabLuaTeX -- Processing ArabTeX notation under LuaLaTeX Copyright (C) 2016 Robert Alessi Please send error reports and suggestions for improvements to Robert Alessi <alessi@robertalessi.net> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. --]] -- common punctuationtr = { {a="%(%(", b="("}, {a="%)%)", b=")"} } nulltr = { {a="%|", b=""} } -- cap captr = { -- dmg (defaut); loc as well {a="ā", b="Ā"}, {a="b", b="B"}, {a="t", b="T"}, {a="ṯ", b="Ṯ"}, {a="ğ", b="Ğ"}, {a="ḥ", b="Ḥ"}, {a="ḫ", b="Ḫ"}, {a="d", b="D"}, {a="ḏ", b="Ḏ"}, {a="r", b="R"}, {a="z", b="Z"}, {a="s", b="S"}, {a="š", b="Š"}, {a="ṣ", b="Ṣ"}, {a="ḍ", b="Ḍ"}, {a="ṭ", b="Ṭ"}, {a="ẓ", b="Ẓ"}, {a="ġ", b="Ġ"}, {a="f", b="F"}, {a="q", b="Q"}, {a="k", b="K"}, {a="l", b="L"}, {a="m", b="M"}, {a="n", b="N"}, {a="h", b="H"}, {a="w", b="W"}, {a="ū", b="Ū"}, {a="y", b="Y"}, {a="ī", b="Ī"} } -- dmg hamzatrdmg = { -- hard coded hamza {a="|\"'", b="ʾ"}, {a="A\"'", b="ʾA"}, {a="[au]\"'", b="ʾ"}, {a="w\"'", b="ʾ"}, {a="i\"'", b="ʾ"}, {a="y\"'", b="ʾ"}, -- hamza takes tašdīd too {a="''([Uu])", b="ʾʾ%1"}, {a="''([Aa])", b="ʾʾ%1"}, {a="''([Ii])", b="ʾʾ%1"}, -- initial long u and i (for a, see below) {a="%'%_U", b="ʾU"}, {a="%'%_I", b="ʾI"}, -- taḫfīfu 'l-hamza {a="'u'([^uaiUAI])", b="ʾU%1"}, {a="'i'([^uaiUAI])", b="ʾI%1"}, -- madda (historic writing below) {a="'a'([^uaiUAI])", b="ʾA%1"}, {a="'a?A", b="ʾA"}, {a="(A)(')(i)$", b="%1ʾ%3"}, {a="(A)(')(i)(%W)", b="%1ʾ%3%4"}, {a="(A)(')(i)", b="%1ʾ%3"}, -- historic madda {a="(A)(')", b="%1ʾ"}, -- historic madda -- initial (needs both ^ and %W patterns) {a="^(')([ua])", b="ʾ%2"}, {a="^(')(i)", b="ʾ%2"}, {a="(%W)(')([ua])", b="%1ʾ%3"}, {a="(%W)(')(i)", b="%1ʾ%3"}, -- final {a="([Iy])(')(aN)$", b="%1ʾ%3"}, {a="([Iy])(')(aN)(%W)", b="%1ʾ%3%4"}, {a="([^uai])(')([uai]N?)$", b="%1ʾ%3"}, {a="([^uai])(')([uai]N?)(%W)", b="%1ʾ%3%4"}, {a="([UI])(')([uai])$", b="%1ʾ%3"}, {a="([UI])(')([uai])(%W)", b="%1ʾ%3%4"}, -- middle {a="(U)(')", b="%1ʾ"}, {a="([Iy])(')", b="%1ʾ"}, {a="([^uai])(')([uU])", b="%1ʾ%3"}, {a="([^uai])(')([aA])", b="%1ʾ%3"}, {a="([^uai])(')([iI])", b="%1ʾ%3"}, {a="(u)(')([uU])", b="%1ʾ%3"}, {a="(u)(')([aA])", b="%1ʾ%3"}, {a="(u)(')([iI])", b="%1ʾ%3"}, {a="(a)(')([aA])", b="%1ʾ%3"}, {a="(a)(')([uU])", b="%1ʾ%3"}, {a="(a)(')([iI])", b="%1ʾ%3"}, {a="(i)(')([aA])", b="%1ʾ%3"}, {a="(i)(')([uU])", b="%1ʾ%3"}, {a="(i)(')([iI])", b="%1ʾ%3"}, {a="(a)(')([^uaiUAI])", b="%1ʾ%3"}, {a="(u)(')([^uaiUAI])", b="%1ʾ%3"}, {a="(i)(')([^uaiUAI])", b="%1ʾ%3"} } tanwintrdmg = { {a="%-?uNU", b="\\arbup{un}"}, {a="%-?aNU", b="\\arbup{an}"}, {a="%-?iNU", b="\\arbup{in}"}, {a="%-?iNI", b="i\\arbup{n}"}, -- tanwīn preceding ʾalif conjunctionis {a="%-?(uN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="\\arbup{uni}%2%3"}, {a="%-?(aN)(_A)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="ạ\\arbup{ni}%3%4"}, {a="%-?(aN)(Y)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="ạ\\arbup{ni}%3%4"}, {a="(T)%-?(aN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="t\\arbup{ani}%3%4"}, {a="([^TA])%-?(aN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1\\arbup{ani}%3%4"}, {a="%-?(iN)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="\\arbup{ini}%2%3"}, -- tanwīn + alif without hamza and kasra (ibn) {a="%-?(uN)(%s)(i)", b="\\arbup{uni}%2'"}, {a="%-?(aN)(_A)(%s)(i)", b="ạ\\arbup{ni}%3%'"}, {a="%-?(aN)(Y)(%s)(i)", b="ạ\\arbup{ni}%3%'"}, {a="(T)%-?(aN)(%s)(i)", b="t\\arbup{ani}%3%'"}, {a="([^TA])%-?(aN)(%s)(i)", b="%1\\arbup{ani}%3%'"}, {a="%-?(iN)(%s)(i)", b="\\arbup{ini}%2%'"}, -- -- {a="uN", b="\\arbup{un}"}, (now included in the last line of this table) {a="%-?(\"?At)%-?([ui])N", b="\\arbup{%1%2n}"}, {a="%-?(aN)(_A)", b="ạ\\arbup{n}"}, {a="%-?(aN)(Y)", b="ạ\\arbup{n}"}, {a="(T)%-?(\"?aN)", b="t\\arbup{an}"}, {a="([^TA])%-?(\"?aN)", b="%1\\arbup{an}"}, {a="%-?([ui])N", b="\\arbup{%1n}"} } trigraphstrdmg = { -- trigraphs or more -- 'llatI / 'llad_I {a="^'ll(a)([%_]?[dt])", b="'ll%1%2"}, {a="(%s)'ll(a)([%_]?[dt])", b="%1'll%2%3"}, -- al- + lām {a="^(a)l%-(l)", b="%1l-%2"}, {a="([%s%-])(a)l%-(l)", b="%1%2l-%3"}, -- al- + solar consonant {a="^(a)l%-([%_%^%.]?[tdrzsn])", b="%1%2-%2"}, {a="([%s%-])(a)l%-([%_%^%.]?[tdrzsn])", b="%1%2%3-%3"}, -- assim. art. + solar consonant {a="^(a)([%_%^%.]?[tdrzsn])%-", b="%1%2-"}, {a="([%s%-])(a)([%_%^%.]?[tdrzsn])%-", b="%1%2%3-"}, -- al- + initial unstable hamza {a="^(a)l%-([uai])", b="%1l-%2"}, {a="([%s%-])(a)l%-([uai])", b="%1%2l-%3"}, -- li-/la- + art. + initial unstable hamza is a special orthography {a="l([ai])%-l%-([uai])", b="l%1-l-%2"}, -- al- + lunar consonant (i.e. what remains) {a="^(a)l%-", b="%1l-"}, {a="([%s%-])(a)l%-", b="%1%2l-"}, -- diphthongs to be resolved before ʾalif conjunctionis {a="(aw)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1u%2%3"}, {a="(ay)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1i%2%3"}, -- art. with waṣla + lām {a="'l%-(l)", b="'l-%1"}, -- art. with waṣla + solar consonant {a="'l%-([%_%^%.]?[tdrzsn])", b="'%1-%1"}, -- li-/la- + art. + lām {a="l([ai])%-l%-(l)", b="l%1-%2%2"}, -- assim. art. with waṣla + solar consonant {a="'([%_%^%.]?[tdrzsn])%-", b="'%1-"}, -- li-/la- + art. + solar consonant is a special orthography {a="l([ai])%-l%-([%_%^%.]?[tdrzsn])", b="l%1-%2-%2"}, -- li-/la- + assim. art. + solar consonant is a special orthography {a="l([ai])%-([%_%^%.]?[tdrzsn])%-([%_%^%.]?[tdrzsn])", b="l%1-%2-%3"}, -- art. with waṣla + initial unstable hamza {a="'l%-([uai])", b="'l-%1"}, -- art. with waṣla + lunar consonant (i.e. what remains) {a="'l%-", b="'l-"}, -- the silent wāw {a="uU$", b="u"}, {a="uU(%W)", b="u%1"}, {a="aU$", b="a"}, {a="aU(%W)", b="a%1"}, {a="iU$", b="i"}, {a="iU(%W)", b="i%1"}, -- words ending in -āT with silent wāw/yāʾ {a="(_a)UA", b="A"}, {a="(_a)U", b="A"}, {a="(_a)I", b="A"}, -- assimilations {a="(n)(}?)(%s)([rlmnwy])", b="%4%2%3%4"} } trigraphstrdmgeasy = { -- see the differences below under 'easy' tag -- 'llatI / 'llad_I {a="^'ll(a)([%_]?[dt])", b="'ll%1%2"}, {a="(%s)'ll(a)([%_]?[dt])", b="%1'll%2%3"}, -- al- + lām {a="^(a)l%-(l)", b="%1l-%2"}, {a="([%s%-])(a)l%-(l)", b="%1%2l-%3"}, -- al- + solar consonant {a="^(a)l%-([%_%^%.]?[tdrzsn])", b="%1%2-%2"}, {a="([%s%-])(a)l%-([%_%^%.]?[tdrzsn])", b="%1%2%3-%3"}, -- assim. art. + solar consonant {a="^(a)([%_%^%.]?[tdrzsn])%-", b="%1%2-"}, {a="([%s%-])(a)([%_%^%.]?[tdrzsn])%-", b="%1%2%3-"}, -- al- + initial unstable hamza {a="^(a)l%-([uai])", b="%1l-%2"}, {a="([%s%-])(a)l%-([uai])", b="%1%2l-%3"}, -- li-/la- + art. + initial unstable hamza is a special orthography {a="l([ai])%-l%-([uai])", b="l%1-l-%2"}, -- al- + lunar consonant (i.e. what remains) {a="^(a)l%-", b="%1l-"}, {a="([%s%-])(a)l%-", b="%1%2l-"}, -- diphthongs to be resolved before ʾalif conjunctionis {a="(aw)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1u%2%3"}, {a="(ay)(%s)(['][%_%^%.]?[l'btjghxdrzs`fqkmnwy]%-)", b="%1i%2%3"}, -- art. with waṣla + lām {a="'l%-(l)", b="'l-%1"}, -- art. with waṣla + solar consonant {a="'l%-([%_%^%.]?[tdrzsn])", b="'%1-%1"}, -- li-/la- + art. + lām {a="l([ai])%-l%-(l)", b="l%1-%2%2"}, -- assim. art. with waṣla + solar consonant {a="'([%_%^%.]?[tdrzsn])%-", b="'%1-"}, -- li-/la- + art. + solar consonant is a special orthography {a="l([ai])%-l%-([%_%^%.]?[tdrzsn])", b="l%1-%2-%2"}, -- li-/la- + assim. art. + solar consonant is a special orthography