Also move data files for gen scripts into gen dir

This commit is contained in:
Kovid Goyal 2023-10-14 08:04:37 +05:30
parent e6ef2fceea
commit a79dd3996a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
5 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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

View File

@ -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