diff options
| author | Philipp Gesang <phg@phi-gamma.net> | 2015-11-20 22:05:33 +0100 | 
|---|---|---|
| committer | Philipp Gesang <phg@phi-gamma.net> | 2015-11-20 22:05:33 +0100 | 
| commit | 4256d04d076d788428d4a8eb9a316da9d52a1622 (patch) | |
| tree | c7120bd4b8576c85022f936df0e72a40c71bae37 /scripts/mkcharacters | |
| parent | 7baac9244235ce00255a0f61c5931585aa99163c (diff) | |
| parent | cf6c8c94cc88db6564ccea266b3c6d8f7a5bb1a1 (diff) | |
| download | luaotfload-4256d04d076d788428d4a8eb9a316da9d52a1622.tar.gz | |
Merge pull request #291 from phi-gamma/master
pluggable fontloaders
Diffstat (limited to 'scripts/mkcharacters')
| -rwxr-xr-x | scripts/mkcharacters | 12 | 
1 files changed, 9 insertions, 3 deletions
| diff --git a/scripts/mkcharacters b/scripts/mkcharacters index abed2c9..59582f2 100755 --- a/scripts/mkcharacters +++ b/scripts/mkcharacters @@ -5,8 +5,6 @@  --  DESCRIPTION:  import parts of char-def.lua  -- REQUIREMENTS:  lua, ConTeXt, the lualibs package  --       AUTHOR:  Philipp Gesang (Phg), <phg42.2a@gmail.com> ---      VERSION:  2.5 ---     MODIFIED: 2014-02-11 07:24:25+0100  -----------------------------------------------------------------------  -- we create a stripped-down version of char-def.lua  ----------------------------------------------------------------------- @@ -15,7 +13,7 @@  --                              config  -----------------------------------------------------------------------  local charfile      = "./build/luaotfload-characters.lua" -local chardef       = "/home/phg/base/char-def.lua" +local chardef       = arg[1]  ---  for every code point char-def.lua provides a set of fields. they  ---  are: @@ -65,6 +63,11 @@ for _, lib in next, { "lualibs-lua.lua",    require(found)  end +if not chardef then +  chardef = kpse.expand_path("~/context/tex/texmf-context/tex/context/base/") +          .. "/char-def.lua" +end +  if not (chardef and lfs.isfile(chardef)) then    --- we could grab the file from contextgarden but as Context is part    --- of TL it’s not worth bothering  @@ -72,6 +75,9 @@ if not (chardef and lfs.isfile(chardef)) then                     "Could not find ConTeXt.")  end +io.write(string.format("extracting data from char-def.lua at %s\n", +                       chardef)) +  -----------------------------------------------------------------------  --                           functionality  ----------------------------------------------------------------------- | 
