aboutsummaryrefslogtreecommitdiff
path: root/arabluatex.dtx
AgeCommit message (Collapse)Author
2016-03-20some bugfixes in the tables; still writing the documentationRobert Alessi
2016-03-15added final hamza + sukūnRobert Alessi
2016-03-15some corrections in the tables + writing the documentationRobert Alessi
2016-03-14some corrections in the tables as |BaN|; still writing the documentationRobert Alessi
2016-03-11corrected final tāʾ marbūṭa, writing documentation (continued)Robert Alessi
2016-03-11modified makefile to index referencesRobert Alessi
2016-03-10writing documentation (continued) + added quoting u|a|iRobert Alessi
2016-03-10use dox packageRobert Alessi
2016-03-09reverted to ltxdocRobert Alessi
2016-03-09corrected clean-up function for hyphenRobert Alessi
2016-03-09writing documentation (continued)Robert Alessi
2016-03-08writing documentation...Robert Alessi
2016-03-08updated makefileRobert Alessi
2016-03-07removed all of old \robustify commandsRobert Alessi
2016-03-06started writing the docRobert Alessi
2016-03-03moved \set@translit@convention before the user commandRobert Alessi
2016-03-02add \cap{} command; correct transliteration tablesRobert Alessi
2016-02-29first implementation of transliteration tables (dmg)Robert Alessi
2016-02-28update docRobert Alessi
2016-02-28include .bib file in the docRobert Alessi
2016-02-28define \setRL and \setLRRobert Alessi
2016-02-26use \luastring(N/O){} so no need to robustify anymoreRobert Alessi
2016-02-26(re)define \LR{} command \AtBeginDocument{} in case luabidi is loadedRobert Alessi
2016-02-24first implementation of fullvoc tablesRobert Alessi
2016-02-22(re)define \LR{} \AtBeginDocument{} in case luabidi is loadedRobert Alessi
2016-02-22add \LRfootnote{} commandRobert Alessi
2016-02-22initial project versionRobert Alessi
'#n317'>317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454
--[[
This file is part of the `arabluatex' package

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 2
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, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
--]]

-- common

punctuationtr = {
   {a="%(%(", b="("},
   {a="%)%)", b=")"}
}

nulltr = {
   {a="%|", b=""}
}

-- dmg

hamzatrdmg = {
   -- hard coded hamza
   {a="|\"'", b="ʾ"},
   {a="A\"'", b="ʾ"},
   {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
   {a="%'%_U", b="ʾU"},
   -- 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"}
}

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"},