summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/texnegar/texnegar.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/texnegar/texnegar.dtx')
-rw-r--r--macros/latex/contrib/texnegar/texnegar.dtx101
1 files changed, 36 insertions, 65 deletions
diff --git a/macros/latex/contrib/texnegar/texnegar.dtx b/macros/latex/contrib/texnegar/texnegar.dtx
index af171614c5..4b27c5c054 100644
--- a/macros/latex/contrib/texnegar/texnegar.dtx
+++ b/macros/latex/contrib/texnegar/texnegar.dtx
@@ -100,7 +100,7 @@ make time to fix.
% }^^A
% }
%
-% \date{Released \quad 2020-08-29 \quad v0.1a}
+% \date{Released \quad 2020-08-30 \quad v0.1b}
%
% \maketitle
%
@@ -131,7 +131,7 @@ make time to fix.
\RequirePackage{l3keys2e}
\RequirePackage{graphicx}[2019-11-30]
\RequirePackage[dvipsnames,svgnames,x11names]{xcolor}[2016/05/11]
-\ProvidesExplPackage {texnegar} {2020-08-29} {0.1a} { Full implementation of kashida feature in XeLaTex and LuaLaTeX }
+\ProvidesExplPackage {texnegar} {2020-08-30} {0.1b} { Full implementation of kashida feature in XeLaTex and LuaLaTeX }
\sys_if_engine_luatex:T
{
@@ -159,7 +159,7 @@ make time to fix.
%
% \begin{macrocode}
%<*texnegar-luatex-sty>
-\ProvidesExplPackage {texnegar-luatex} {2020-08-29} {0.1a} { Full implementation of kashida feature in xetex and luatex }
+\ProvidesExplPackage {texnegar-luatex} {2020-08-30} {0.1b} { Full implementation of kashida feature in xetex and luatex }
\tex_input:D { texnegar-ini.tex }
@@ -195,7 +195,7 @@ make time to fix.
% \begin{macrocode}
%<*texnegar-xetex-sty>
\RequirePackage{zref-savepos}[2020-03-03]
-\ProvidesExplPackage {texnegar-xetex} {2020-08-29} {0.1a} { Full implementation of kashida feature in XeLaTex and LuaLaTeX }
+\ProvidesExplPackage {texnegar-xetex} {2020-08-30} {0.1b} { Full implementation of kashida feature in XeLaTex and LuaLaTeX }
\tex_input:D { texnegar-ini.tex }
@@ -212,7 +212,7 @@ make time to fix.
%
% \begin{macrocode}
%<*texnegar-ini-tex>
-\ProvidesExplFile {texnegar-ini.tex} {2020-08-29} {0.1a} { Full implementation of kashida feature in XeLaTex and LuaLaTeX }
+\ProvidesExplFile {texnegar-ini.tex} {2020-08-30} {0.1b} { Full implementation of kashida feature in XeLaTex and LuaLaTeX }
\def\TeXNegar{\TeX Negar}
@@ -609,7 +609,7 @@ make time to fix.
% \subsection{File: \texttt{texnegar-common-kashida.tex}}
% \begin{macrocode}
%<*texnegar-common-kashida-tex>
-\ProvidesExplFile {texnegar-common-kashida.tex} {2020-08-29} {0.1a} { Full implementation of kashida feature in XeLaTex and LuaLaTeX }
+\ProvidesExplFile {texnegar-common-kashida.tex} {2020-08-30} {0.1b} { Full implementation of kashida feature in XeLaTex and LuaLaTeX }
\bool_if:NT \l_texnegar_ligature_bool
{
@@ -684,7 +684,7 @@ make time to fix.
%
% \begin{macrocode}
%<*texnegar-xetex-kashida-tex>
-\ProvidesExplFile {texnegar-xetex-kashida.tex} {2020-08-29} {0.1a} { Full implementation of kashida feature in XeLaTex and LuaLaTeX }
+\ProvidesExplFile {texnegar-xetex-kashida.tex} {2020-08-30} {0.1b} { Full implementation of kashida feature in XeLaTex and LuaLaTeX }
\newXeTeXintercharclass \c_texnegar_d_charclass % dual-joiner class
\newXeTeXintercharclass \c_texnegar_l_charclass % lam
@@ -883,17 +883,17 @@ make time to fix.
%</texnegar-xetex-kashida-tex>
% \end{macrocode}
%
-% \subsection{File: \texttt{pe-char-table.lua}}
+% \subsection{File: \texttt{texnegar-char-table.lua}}
%
% \begin{macrocode}
-%<*pe-char-table-lua>
+%<*texnegar-char-table-lua>
--
--- This is file `pe-char-table.lua',
+-- This is file `texnegar-char-table.lua',
-- generated with the docstrip utility.
--
-- The original source files were:
--
--- texnegar.dtx (with options: `pe-char-table-lua')
+-- texnegar.dtx (with options: `texnegar-char-table-lua')
--
-- Copyright (C) 2020 Hossein Movahhedian
--
@@ -901,23 +901,23 @@ make time to fix.
-- version 1.3c or higher (your choice). The latest version of
-- this license is at: http://www.latex-project.org/lppl.txt
--
--- pe_char_table = pe_char_table or {}
--- local pe_char_table = pe_char_table
--- pe_char_table.module = {
--- name = "pe_char_table",
--- version = "0.1a",
--- date = "2020-08-29",
--- description = "Full implementation of kashida feature in XeLaTex and LuaLaTeX",
--- author = "Hossein Movahhedian",
--- copyright = "Hossein Movahhedian",
--- license = "LPPL v1.3c"
+-- texnegar_char_table = texnegar_char_table or {}
+-- local texnegar_char_table = texnegar_char_table
+-- texnegar_char_table.module = {
+-- name = "texnegar_char_table",
+-- version = "0.1b",
+-- date = "2020-08-30",
+-- description = "Full implementation of kashida feature in XeLaTex and LuaLaTeX",
+-- author = "Hossein Movahhedian",
+-- copyright = "Hossein Movahhedian",
+-- license = "LPPL v1.3c"
-- }
--
-- -- ^^A%% texnegar-lua.dtx -- part of TEXNEGAR <bitbucket.org/dma8hm1334/texnegar>
--- local err, warn, info, log = luatexbase.provides_module(pe_char_table.module)
--- pe_char_table.log = log or (function (s) luatexbase.module_info("pe_char_table", s) end)
--- pe_char_table.warning = warn or (function (s) luatexbase.module_warning("pe_char_table", s) end)
--- pe_char_table.error = err or (function (s) luatexbase.module_error("pe_char_table", s) end)
+-- local err, warn, info, log = luatexbase.provides_module(texnegar_char_table.module)
+-- texnegar_char_table.log = log or (function (s) luatexbase.module_info("texnegar_char_table", s) end)
+-- texnegar_char_table.warning = warn or (function (s) luatexbase.module_warning("texnegar_char_table", s) end)
+-- texnegar_char_table.error = err or (function (s) luatexbase.module_error("texnegar_char_table", s) end)
local peCharTableInitial = {
[64344] = utf8.char(64344), -- "ﭘ", utf8.codepoint("ﭘ") == 64344, "\u{FB58}", INITIAL FORM PEH
@@ -950,7 +950,6 @@ local peCharTableInitial = {
}
local peCharTableMedial = {
- [1565] = utf8.char(1565), -- "؝ؘ؝؝", utf8.codepoint("؝؝") == 1565, "\u{061D}", KASHIDA
[1600] = utf8.char(1600), -- "ـ", utf8.codepoint("ـ") == 1600, "\u{0640}", ARABIC TATWEEL
[64345] = utf8.char(64345), -- "ﭙ", utf8.codepoint("ﭙ") == 64345, "\u{FB59}", MEDIAL FORM PEH
[64381] = utf8.char(64381), -- "ﭽ", utf8.codepoint("ﭽ") == 64381, "\u{FB7D}", MEDIAL FORM TCHEH
@@ -1027,8 +1026,8 @@ local peCharTableFinal = {
return peCharTableInitial, peCharTableMedial, peCharTableFinal
--
--
--- End of file `pe-char-table.lua'.
-%</pe-char-table-lua>
+-- End of file `texnegar-char-table.lua'.
+%</texnegar-char-table-lua>
% \end{macrocode}
%
% \subsection{File: \texttt{texnegar.lua}}
@@ -1053,8 +1052,8 @@ return peCharTableInitial, peCharTableMedial, peCharTableFinal
-- local texnegar = texnegar
-- texnegar.module = {
-- name = "texnegar",
--- version = "0.1a",
--- date = "2020-08-29",
+-- version = "0.1b",
+-- date = "2020-08-30",
-- description = "Full implementation of kashida feature in XeLaTex and LuaLaTeX",
-- author = "Hossein Movahhedian",
-- copyright = "Hossein Movahhedian",
@@ -1097,8 +1096,8 @@ dofile(kpse.find_file("texnegar-ini.lua"))
-- local texnegar_ini = texnegar_ini
-- texnegar_ini.module = {
-- name = "texnegar_ini",
--- version = "0.1a",
--- date = "2020-08-29",
+-- version = "0.1b",
+-- date = "2020-08-30",
-- description = "Full implementation of kashida feature in XeLaTex and LuaLaTeX",
-- author = "Hossein Movahhedian",
-- copyright = "Hossein Movahhedian",
@@ -1111,36 +1110,8 @@ dofile(kpse.find_file("texnegar-ini.lua"))
-- texnegar_ini.warning = warn or (function (s) luatexbase.module_warning("texnegar_ini", s) end)
-- texnegar_ini.error = err or (function (s) luatexbase.module_error("texnegar_ini", s) end)
--- enCharTableInitial, enCharTableMedial, enCharTableFinal = dofile(kpse.find_file("en-char-table.lua"))
--- peCharTableInitial, peCharTableMedial, peCharTableFinal = dofile(kpse.find_file("pe-char-table.lua"))
-
--- kashida_unicode = 1600
--- kashida_subtype = 256
-
--- COLORSTACK = node.subtype("pdf_colorstack")
--- GLUE = node.id("glue")
--- GLYPH = node.id("glyph")
--- HLIST = node.id("hlist")
--- KERN = node.id("kern")
--- RULE = node.id("rule")
--- WHATSIT = node.id("whatsit")
-
--- c_false_bool = token.create("c_false_bool")
c_true_bool = token.create("c_true_bool")
--- l_texnegar_kashida_fix_bool = token.create("l_texnegar_kashida_fix_bool")
-
--- l_texnegar_kashida_glyph_bool = token.create("l_texnegar_kashida_glyph_bool")
--- l_texnegar_kashida_leaders_glyph_bool = token.create("l_texnegar_kashida_leaders_glyph_bool")
--- l_texnegar_kashida_leaders_hrule_bool = token.create("l_texnegar_kashida_leaders_hrule_bool")
-
--- l_texnegar_ligature_bool = token.create("l_texnegar_ligature_bool")
-
--- l_texnegar_linebreakpenalty_bool = token.create("l_texnegar_linebreakpenalty_bool")
-
--- l_texnegar_hboxrecursion_bool = token.create("l_texnegar_hboxrecursion_bool")
--- l_texnegar_vboxrecursion_bool = token.create("l_texnegar_vboxrecursion_bool")
-
l_texnegar_color_bool = token.create("l_texnegar_color_bool")
if l_texnegar_color_bool.mode == c_true_bool.mode then
@@ -1150,8 +1121,6 @@ if l_texnegar_color_bool.mode == c_true_bool.mode then
end
end
--- selected_font = font.current()
--- selected_font_old = selected_font
dofile(kpse.find_file("texnegar-luatex-kashida.lua")) -- leaders + resized glyph U+0640
--
--
@@ -1181,8 +1150,8 @@ dofile(kpse.find_file("texnegar-luatex-kashida.lua")) -- leaders + resized gly
-- local texnegar_luatex_kashida = texnegar_luatex_kashida
-- texnegar_luatex_kashida.module = {
-- name = "texnegar_luatex_kashida",
--- version = "0.1a",
--- date = "2020-08-29",
+-- version = "0.1b",
+-- date = "2020-08-30",
-- description = "Full implementation of kashida feature in XeLaTex and LuaLaTeX",
-- author = "Hossein Movahhedian",
-- copyright = "Hossein Movahhedian",
@@ -1195,7 +1164,7 @@ dofile(kpse.find_file("texnegar-luatex-kashida.lua")) -- leaders + resized gly
-- texnegar_luatex_kashida.warning = warn or (function (s) luatexbase.module_warning("texnegar_luatex_kashida", s) end)
-- texnegar_luatex_kashida.error = err or (function (s) luatexbase.module_error("texnegar_luatex_kashida", s) end)
-local peCharTableInitial, peCharTableMedial, peCharTableFinal = dofile(kpse.find_file("pe-char-table.lua"))
+local peCharTableInitial, peCharTableMedial, peCharTableFinal = dofile(kpse.find_file("texnegar-char-table.lua"))
local kashida_unicode = 1600
local kashida_subtype = 256
@@ -1716,6 +1685,8 @@ end
%
% \HistoryItem{2020-08-29~v0.1a}{First standalone version.}
%
+% \HistoryItem{2020-08-30~v0.1b}{Changed some file names.}
+%
% \end{itemize}
%
% \section*{To Do's}