Also move data files for gen scripts into gen dir
This commit is contained in:
parent
e6ef2fceea
commit
a79dd3996a
5 changed files with 4 additions and 4 deletions
|
|
@ -12,6 +12,6 @@ for line in cp.stdout.decode().splitlines():
|
|||
fname = line.split(':', 1)[0]
|
||||
all_files.discard(fname)
|
||||
|
||||
all_files -= {'nerd-fonts-glyphs.txt', 'rowcolumn-diacritics.txt'}
|
||||
all_files -= {'gen/nerd-fonts-glyphs.txt', 'gen/rowcolumn-diacritics.txt'}
|
||||
cp = subprocess.run(['cloc', '--list-file', '-'], input='\n'.join(all_files).encode())
|
||||
raise SystemExit(cp.returncode)
|
||||
|
|
|
|||
|
|
@ -555,7 +555,7 @@ The image will eventually be fit to the specified rectangle, its aspect ratio
|
|||
preserved. Finally, the image can be actually displayed by using the
|
||||
placeholder character, encoding the image ID in its foreground color. The row
|
||||
and column values are specified with diacritics listed in
|
||||
:download:`rowcolumn-diacritics.txt <../rowcolumn-diacritics.txt>`. For
|
||||
:download:`rowcolumn-diacritics.txt <../gen/rowcolumn-diacritics.txt>`. For
|
||||
example, here is how you can print a ``2x2`` placeholder for image ID ``42``:
|
||||
|
||||
.. code-block:: sh
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ def add_word(w: str, c: int) -> None:
|
|||
# the future.
|
||||
marks.add(codepoint)
|
||||
|
||||
with open('nerd-fonts-glyphs.txt') as f:
|
||||
with open('gen/nerd-fonts-glyphs.txt') as f:
|
||||
for line in f:
|
||||
line = line.strip()
|
||||
if not line or line.startswith('#'):
|
||||
|
|
@ -538,7 +538,7 @@ def add_all(p: Callable[..., None], for_go: bool = False) -> None:
|
|||
def gen_rowcolumn_diacritics() -> None:
|
||||
# codes of all row/column diacritics
|
||||
codes = []
|
||||
with open("./rowcolumn-diacritics.txt") as file:
|
||||
with open("gen/rowcolumn-diacritics.txt") as file:
|
||||
for line in file.readlines():
|
||||
if line.startswith('#'):
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue