master 6a781a0a0a10 cached
11 files
19.8 KB
6.3k tokens
1 requests
Download .txt
Repository: hakatashi/RictyDiminished-with-FiraCode
Branch: master
Commit: 6a781a0a0a10
Files: 11
Total size: 19.8 KB

Directory structure:
gitextract_bu4ja4jt/

├── .gitignore
├── .gitmodules
├── .travis.yml
├── LICENSE
├── Makefile
├── README.md
├── apply-feature.py
├── build-feature.py
├── build.py
├── ligatures.csv
└── ligatures.fea.jinja2

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitignore
================================================
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
#  Usually these files are written by a python script from a template
#  before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*,cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# IPython Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# dotenv
.env

# virtualenv
venv/
ENV/

# Spyder project settings
.spyderproject

# Rope project settings
.ropeproject

# Application Specific
*.fea
*.ttf
*.sfd
*.json
svg/*.raw.svg
build-py2.py


================================================
FILE: .gitmodules
================================================
[submodule "FiraCode"]
	path = FiraCode
	url = https://github.com/tonsky/FiraCode.git
[submodule "RictyDiminished"]
	path = RictyDiminished
	url = https://github.com/edihbrandon/RictyDiminished.git


================================================
FILE: .travis.yml
================================================
dist: bionic
addons:
  apt:
    sources:
      # for some reason python3-fontforge is only available in focal
      - sourceline: deb http://us.archive.ubuntu.com/ubuntu/ focal main restricted
      - sourceline: deb http://us.archive.ubuntu.com/ubuntu/ focal universe
    packages:
      - python3
      - python3-fontforge
      - python3-jinja2
      - python3-fonttools
script:
  - make
deploy:
  provider: releases
  api_key:
    secure: Bo8AlrlQdj4Z8KIu4TKg05HQznAdFdG2uSpe3Hg9jdsSR1AFRHcVsLhs8GNENTykNg66q7gZZJkPlLd0CPLD6dQ1seDqvllMpcBYiNIboeo5rAQ2Y92Q+aWGUZVblhsl+2WEQOyPEYzOFLbGrVKWjZsX2z0s9k14Sn+aRNlAD8fKVeZQzQtNpBiOZzdjkBUYyjwz+Hl+DV4jRpKJtyQ/g/DaSPLrZ3lzqkW1ANPcBTfBZrj5Qfb/FRydJ2FLlwpP3Rbq0zlW1ATKP9qtxXMvyowQtMxjWiHtwW31wLWhjvQBEisjZBgBvUhbZsKxAObgKOneNoxKOFXv2LmX75qwdOROMttlSDgmn9H48WNWJ/VBFOePLtYQjGTlsDXI7iTmDTAEDSsjA+ZGv4K6QX8J9sAUnRnl31SQIaioyfw3VBkNkp8oc6kvmPB+SLIsyjazKlkBc5Ye8qnA7QiB0MlXcpXS3Tv87MgAmdvLoixL3Mh3sIEsgC9sSB78WQjS1sHRrTHigAAoHEuRKM09CsNQ3MlyfCD7DXFWYDF9IlbsoK3QncWyIvBtdMlS9qbGM17/8LohYNKxU8XsOS/EGXgnMLkYyDn/IUQ3bUzFERBVSf4OUgkPVyeTcJDfmmWD6ZWFcsy2wAKlyJKjmPGv6IxD+PjQGtdhk8gDkVvncGeGBz8=
  file:
    - RictyDiminished-with-FiraCode-Regular.ttf
    - RictyDiminished-with-FiraCode-Bold.ttf
    - RictyDiminishedDiscord-with-FiraCode-Regular.ttf
    - RictyDiminishedDiscord-with-FiraCode-Bold.ttf
  skip_cleanup: true
  on:
    tags: true
    repo: hakatashi/RictyDiminished-with-FiraCode
notifications:
  webhooks: http://webhook.hakatashi.com/travis


================================================
FILE: LICENSE
================================================
Copyright (c) 2016-2019, Koki Takahashi https://hakatashi.com

Copyright (c) 2014, The Fira Code Project Authors (https://github.com/tonsky/FiraCode)

Copyright (c) 2014, Nikita Prokopov http://tonsky.me
with Reserved Font Name Fira Code.

Copyright (c) 2014, Mozilla Foundation https://mozilla.org/
with Reserved Font Name Fira Sans.

Copyright (c) 2014, Mozilla Foundation https://mozilla.org/
with Reserved Font Name Fira Mono.

Copyright (c) 2014, Telefonica S.A.

Copyright (c) 2012-2014, Yasunori Yusa

Copyright (c) 2006, Raph Levien

Copyright (c) 2006-2013, itouhiro

Copyright (c) 2002-2013, M+ FONTS PROJECT

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.


================================================
FILE: Makefile
================================================
PYTHON = python3
REGULAR = RictyDiminished-with-FiraCode-Regular.ttf
REGULAR_UNLINK = RictyDiminished-with-FiraCode-Regular-unlinked.ttf
BOLD = RictyDiminished-with-FiraCode-Bold.ttf
BOLD_UNLINK = RictyDiminished-with-FiraCode-Bold-unlinked.ttf
REGULAR_DISCORD = RictyDiminishedDiscord-with-FiraCode-Regular.ttf
REGULAR_DISCORD_UNLINK = RictyDiminishedDiscord-with-FiraCode-Regular-unlinked.ttf
BOLD_DISCORD = RictyDiminishedDiscord-with-FiraCode-Bold.ttf
BOLD_DISCORD_UNLINK = RictyDiminishedDiscord-with-FiraCode-Bold-unlinked.ttf

all: $(REGULAR) $(BOLD) $(REGULAR_DISCORD) $(BOLD_DISCORD)

$(REGULAR): $(REGULAR_UNLINK) ligatures.fea
	$(PYTHON) apply-feature.py "$(word 1, $^)" "$@"

$(BOLD): $(BOLD_UNLINK) ligatures.fea
	$(PYTHON) apply-feature.py "$(word 1, $^)" "$@"

$(REGULAR_DISCORD): $(REGULAR_DISCORD_UNLINK) ligatures.fea
	$(PYTHON) apply-feature.py "$(word 1, $^)" "$@"

$(BOLD_DISCORD): $(BOLD_DISCORD_UNLINK) ligatures.fea
	$(PYTHON) apply-feature.py "$(word 1, $^)" "$@"

ligatures.fea: ligatures.fea.jinja2 data.json build-feature.py
	$(PYTHON) build-feature.py

$(REGULAR_UNLINK): RictyDiminished/RictyDiminished-Regular.ttf FiraCode/distr/otf/FiraCode-Regular.otf
	$(PYTHON) build.py "$(word 1, $^)" "$(word 2, $^)" "$@" Regular false

$(BOLD_UNLINK): RictyDiminished/RictyDiminished-Bold.ttf FiraCode/distr/otf/FiraCode-Bold.otf
	$(PYTHON) build.py "$(word 1, $^)" "$(word 2, $^)" "$@" Bold false

$(REGULAR_DISCORD_UNLINK): RictyDiminished/RictyDiminishedDiscord-Regular.ttf FiraCode/distr/otf/FiraCode-Regular.otf
	$(PYTHON) build.py "$(word 1, $^)" "$(word 2, $^)" "$@" Regular true

$(BOLD_DISCORD_UNLINK): RictyDiminished/RictyDiminishedDiscord-Bold.ttf FiraCode/distr/otf/FiraCode-Bold.otf
	$(PYTHON) build.py "$(word 1, $^)" "$(word 2, $^)" "$@" Bold true

.PHONY: all


================================================
FILE: README.md
================================================
# RictyDiminished-with-FiraCode

日本一美しいプログラミングフォント [Ricty Diminished](https://github.com/edihbrandon/RictyDiminished) に、[FiraCode](https://github.com/tonsky/FiraCode)のプログラミング合字をミックス。

![](https://i.imgur.com/nPUBImM.png)
![](https://i.imgur.com/TkbPojr.png)

## Download

### Ricty Diminished with FiraCode

* [Regular](https://github.com/hakatashi/RictyDiminished-with-FiraCode/releases/download/1.2.0/RictyDiminished-with-FiraCode-Regular.ttf)
* [Bold](https://github.com/hakatashi/RictyDiminished-with-FiraCode/releases/download/1.2.0/RictyDiminished-with-FiraCode-Bold.ttf)

### Ricty Diminished Discord with FiraCode

* [Regular](https://github.com/hakatashi/RictyDiminished-with-FiraCode/releases/download/1.2.0/RictyDiminishedDiscord-with-FiraCode-Regular.ttf)
* [Bold](https://github.com/hakatashi/RictyDiminished-with-FiraCode/releases/download/1.2.0/RictyDiminishedDiscord-with-FiraCode-Bold.ttf)

## License

[SIL OPEN FONT LICENSE Version 1.1](LICENSE)


================================================
FILE: apply-feature.py
================================================
# -*- coding: utf-8 -*-

from fontTools import ttLib
from fontTools.feaLib.builder import addOpenTypeFeatures
import argparse
import sys

parser = argparse.ArgumentParser()
parser.add_argument('in_font')
parser.add_argument('out_font')
options = parser.parse_args(sys.argv[1:])

# Apply generated feature file to the unlinked font file
ricty = ttLib.TTFont(options.in_font)
addOpenTypeFeatures(ricty, 'ligatures.fea')
ricty.save(options.out_font)


================================================
FILE: build-feature.py
================================================
# -*- coding: utf-8 -*-

from jinja2 import Template
import json

# Load data
with open('data.json', 'r') as file:
    data = json.load(file)

# Load template file
with open('ligatures.fea.jinja2', 'r') as file:
    template = Template(file.read())

# Render feature file
with open('ligatures.fea', 'w') as file:
    file.write(template.render(data))


================================================
FILE: build.py
================================================
# -*- coding: utf-8 -*-

import fontforge
import datetime
import textwrap
import argparse
import psMat
import json
import csv
import os
import sys

version = '1.2.0'
today = datetime.date.today()

parser = argparse.ArgumentParser()
parser.add_argument('ricty')
parser.add_argument('firacode')
parser.add_argument('out_font')
parser.add_argument('weight')
parser.add_argument('discord')
options = parser.parse_args(sys.argv[1:])

if options.discord == 'true':
    fontname = 'RictyDiminishedDiscordWithFiraCode'
    familyname = 'Ricty Diminished Discord with Fira Code'
else:
    fontname = 'RictyDiminishedWithFiraCode'
    familyname = 'Ricty Diminished with Fira Code'
weight = options.weight

ricty = fontforge.open(options.ricty)
firacode = fontforge.open(options.firacode)

# Load ligatures data and create data to generate feature file
with open('ligatures.csv', 'r') as file:
    ligatures_reader = csv.reader(file, delimiter=' ')

    ligatures = []
    nullable_glyphs = []
    glyphs = []

    for [components, source_type, name] in ligatures_reader:
        glyphs.append((source_type, name))
        component_names = list(map(lambda c: ricty[ord(c)].glyphname, list(components)))

        nullable_glyphs.extend(component_names[:-1])

        ligatures.append({
            'glyph': name,
            'components': component_names,
            'lookup': '_'.join(map(lambda name: name.upper(), component_names)),
        })

# Unique
nullable_glyphs = list(set(nullable_glyphs))

# Dump data
with open('data.json', 'w') as file:
    file.write(json.dumps({
        'ligatures': ligatures,
        'nullable_glyphs': nullable_glyphs,
    }))

# Copy needed glyphs from Fira Code font to Ricty
for (source_type, name) in glyphs:
    ricty.createChar(-1, name)

    if source_type == 'svg':
        ricty[name].importOutlines('svg/{}.{}.svg'.format(name, weight))
        ricty[name].width = 500
    elif source_type == 'glf':
        firacode.selection.select(name)
        firacode.copy()
        ricty.selection.select(name)
        ricty.paste()

        ricty.transform(psMat.compose(psMat.scale(500 / 1200), psMat.translate(0, 50)))
        ricty[name].width = 500

# Import Powerline glyphs
powerline_codes = [0xE0A0, 0xE0A1, 0xE0A2, 0xE0B0, 0xE0B1, 0xE0B2, 0xE0B3]

for codepoint in powerline_codes:
    ricty.createChar(codepoint)
    firacode.selection.select(('unicode',), codepoint)
    firacode.copy()
    ricty.selection.select(('unicode',), codepoint)
    ricty.paste()

# Modify glyphs

# Branch
ricty[0xE0A0].transform(psMat.translate(-50, 0))
# Line Number
ricty[0xE0A1].transform(psMat.translate(-50, 0))
# Locked
ricty[0xE0A2].transform(psMat.scale(500 / 600))

# Reset widths
for codepoint in powerline_codes:
    ricty[codepoint].width = 500

# Set font name
ricty.familyname = familyname
ricty.fontname = '{}-{}'.format(fontname, weight)
ricty.fullname = '{} {}'.format(familyname, weight)
ricty.weight = weight

# Set base version of the font
ricty.version = version

# Unset other version names to make them auto-calculated by FontForge
ricty.sfntRevision = None
ricty.woffMajor = None
ricty.woffMinor = None

ricty.copyright = textwrap.dedent('''\
    Copyright (c) 2012-2014 Yasunori Yusa
    Copyright (c) 2006 Raph Levien
    Copyright (c) 2006-2013 itouhiro
    Copyright (c) 2002-2013 M+ FONTS PROJECT
    Copyright (c) 2014 Mozilla Foundation
    Copyright (c) 2014 Telefonica S.A.
    Copyright (c) 2014 Nikita Prokopov
    Copyright (c) 2014 The Fira Code Project Authors (https://github.com/tonsky/FiraCode)
    Copyright (c) 2016-2019 Koki Takahashi
    License:
    SIL Open Font License Version 1.1 (http://scripts.sil.org/ofl)
''')

with open('LICENSE') as file:
    ricty.appendSFNTName('English (US)', 'License', file.read())

ricty.appendSFNTName('English (US)', 'License URL', 'http://scripts.sil.org/OFL')

ricty.appendSFNTName('English (US)', 'UniqueID', '{} {} : {} : {}'.format(familyname, weight, version, today.isoformat()))

# Export
try:
    os.remove(options.out_font)
except OSError:
    pass
ricty.generate(options.out_font)


================================================
FILE: ligatures.csv
================================================
www glf w_w_w.liga
*/ glf asterisk_slash.liga
*** glf asterisk_asterisk_asterisk.liga
** glf asterisk_asterisk.liga
]# glf bracketright_numbersign.liga
::: glf colon_colon_colon.liga
:: glf colon_colon.liga
=:= glf equal_colon_equal.liga
:= glf colon_equal.liga
!! glf exclam_exclam.liga
!== glf exclam_equal_equal.liga
!= glf exclam_equal.liga
--- glf hyphen_hyphen_hyphen.liga
--> glf hyphen_hyphen_greater.liga
->> glf hyphen_greater_greater.liga
-<< glf hyphen_less_less.liga
-> glf hyphen_greater.liga
-< glf hyphen_less.liga
-~ glf hyphen_asciitilde.liga
#### glf numbersign_numbersign_numbersign_numbersign.liga
### glf numbersign_numbersign_numbersign.liga
## glf numbersign_numbersign.liga
#{ svg numbersign_braceleft
#[ glf numbersign_bracketleft.liga
#( glf numbersign_parenleft.liga
#? glf numbersign_question.liga
#_( glf numbersign_underscore_parenleft.liga
#_ glf numbersign_underscore.liga
.- glf period_hyphen.liga
.= glf period_equal.liga
... glf period_period_period.liga
..< glf period_period_less.liga
.. glf period_period.liga
?? glf question_question.liga
?= glf question_equal.liga
;; glf semicolon_semicolon.liga
/* glf slash_asterisk.liga
/== glf slash_equal_equal.liga
/= glf slash_equal.liga
/// glf slash_slash_slash.liga
// glf slash_slash.liga
||= glf bar_bar_equal.liga
|| glf bar_bar.liga
|= glf bar_equal.liga
|> glf bar_greater.liga
^= glf asciicircum_equal.liga
+++ glf plus_plus_plus.liga
++ glf plus_plus.liga
=== glf equal_equal_equal.liga
==> glf equal_equal_greater.liga
=>> glf equal_greater_greater.liga
=> glf equal_greater.liga
=<< glf equal_less_less.liga
=/= glf equal_slash_equal.liga
>- glf greater_hyphen.liga
>=> glf greater_equal_greater.liga
>>- glf greater_greater_hyphen.liga
>>= glf greater_greater_equal.liga
>>> glf greater_greater_greater.liga
>> glf greater_greater.liga
<*> glf less_asterisk_greater.liga
<* glf less_asterisk.liga
*> glf asterisk_greater.liga
<|> glf less_bar_greater.liga
<| glf less_bar.liga
<$> glf less_dollar_greater.liga
<$ glf less_dollar.liga
$> glf dollar_greater.liga
<!-- glf less_exclam_hyphen_hyphen.liga
<-- glf less_hyphen_hyphen.liga
<-> glf less_hyphen_greater.liga
<+> glf less_plus_greater.liga
<+ glf less_plus.liga
+> glf plus_greater.liga
<== glf less_equal_equal.liga
<=> glf less_equal_greater.liga
<=< glf less_equal_less.liga
<- glf less_hyphen.liga
<> glf less_greater.liga
<<- glf less_less_hyphen.liga
<<= glf less_less_equal.liga
<<< glf less_less_less.liga
<< glf less_less.liga
<~~ glf less_asciitilde_asciitilde.liga
<~ glf less_asciitilde.liga
</> glf less_slash_greater.liga
</ svg less_slash
/> glf slash_greater.liga
~@ glf asciitilde_at.liga
~- glf asciitilde_hyphen.liga
~= glf asciitilde_equal.liga
~~> glf asciitilde_asciitilde_greater.liga
~> glf asciitilde_greater.liga
~~ glf asciitilde_asciitilde.liga
%% glf percent_percent.liga
&& svg ampersand_ampersand
<= svg less_equal
>= svg greater_equal
== glf equal_equal.liga
-- glf hyphen_hyphen.liga
-| glf hyphen_bar.liga
{| glf braceleft_bar.liga
[| glf bracketleft_bar.liga
.? glf period_question.liga
::= glf colon_colon_equal.liga
:> glf colon_greater.liga
:< glf colon_less.liga
!!. glf exclam_exclam_period.liga
?. glf question_period.liga
?: glf question_colon.liga
#: glf numbersign_colon.liga
#! glf numbersign_exclam.liga
#= glf numbersign_equal.liga
/\ glf slash_backslash.liga
\/ glf backslash_slash.liga
_|_ glf underscore_bar_underscore.liga
__ glf underscore_underscore.liga
|- glf bar_hyphen.liga
|-> glf bar_hyphen_greater.liga
|} glf bar_braceright.liga
|] glf bar_bracketright.liga
||- glf bar_bar_hyphen.liga
|||> glf bar_bar_bar_greater.liga
||> glf bar_bar_greater.liga
|=> glf bar_equal_greater.liga
=!= glf equal_exclam_equal.liga
>-> glf greater_hyphen_greater.liga
>: glf greater_colon.liga
<-| glf less_hyphen_bar.liga
<-< glf less_hyphen_less.liga
<: glf less_colon.liga
<|| glf less_bar_bar.liga
<||| glf less_bar_bar_bar.liga
<=| glf less_equal_bar.liga
<==> glf less_equal_equal_greater.liga
<~> glf less_asciitilde_greater.liga


================================================
FILE: ligatures.fea.jinja2
================================================
languagesystem DFLT dflt;
languagesystem latn dflt;
languagesystem grek dflt;
languagesystem cyrl dflt;
languagesystem kana dflt;
languagesystem hani dflt;

lookup NULLIFY {
    {% for glyph in nullable_glyphs %}
        substitute {{glyph}} by space;
    {% endfor %}
} NULLIFY;

{% for ligature in ligatures %}
    lookup {{ligature['lookup']}} {
        substitute {{ligature['components'][-1]}} by {{ligature['glyph']}};
    } {{ligature['lookup']}};
{% endfor %}

feature calt {
    {% for ligature in ligatures %}
        substitute
            {% for component in ligature['components'] %}
                {% if loop.last %}
                    {{component}}' lookup {{ligature['lookup']}}
                {% else %}
                    {{component}}' lookup NULLIFY
                {% endif %}
            {% endfor %};
    {% endfor %}
} calt;
Download .txt
gitextract_bu4ja4jt/

├── .gitignore
├── .gitmodules
├── .travis.yml
├── LICENSE
├── Makefile
├── README.md
├── apply-feature.py
├── build-feature.py
├── build.py
├── ligatures.csv
└── ligatures.fea.jinja2
Condensed preview — 11 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (22K chars).
[
  {
    "path": ".gitignore",
    "chars": 1121,
    "preview": "# Byte-compiled / optimized / DLL files\n__pycache__/\n*.py[cod]\n*$py.class\n\n# C extensions\n*.so\n\n# Distribution / packagi"
  },
  {
    "path": ".gitmodules",
    "chars": 198,
    "preview": "[submodule \"FiraCode\"]\n\tpath = FiraCode\n\turl = https://github.com/tonsky/FiraCode.git\n[submodule \"RictyDiminished\"]\n\tpat"
  },
  {
    "path": ".travis.yml",
    "chars": 1491,
    "preview": "dist: bionic\naddons:\n  apt:\n    sources:\n      # for some reason python3-fontforge is only available in focal\n      - so"
  },
  {
    "path": "LICENSE",
    "chars": 4921,
    "preview": "Copyright (c) 2016-2019, Koki Takahashi https://hakatashi.com\n\nCopyright (c) 2014, The Fira Code Project Authors (https:"
  },
  {
    "path": "Makefile",
    "chars": 1798,
    "preview": "PYTHON = python3\nREGULAR = RictyDiminished-with-FiraCode-Regular.ttf\nREGULAR_UNLINK = RictyDiminished-with-FiraCode-Regu"
  },
  {
    "path": "README.md",
    "chars": 965,
    "preview": "# RictyDiminished-with-FiraCode\n\n日本一美しいプログラミングフォント [Ricty Diminished](https://github.com/edihbrandon/RictyDiminished) に、"
  },
  {
    "path": "apply-feature.py",
    "chars": 447,
    "preview": "# -*- coding: utf-8 -*-\n\nfrom fontTools import ttLib\nfrom fontTools.feaLib.builder import addOpenTypeFeatures\nimport arg"
  },
  {
    "path": "build-feature.py",
    "chars": 351,
    "preview": "# -*- coding: utf-8 -*-\n\nfrom jinja2 import Template\nimport json\n\n# Load data\nwith open('data.json', 'r') as file:\n    d"
  },
  {
    "path": "build.py",
    "chars": 4090,
    "preview": "# -*- coding: utf-8 -*-\n\nimport fontforge\nimport datetime\nimport textwrap\nimport argparse\nimport psMat\nimport json\nimpor"
  },
  {
    "path": "ligatures.csv",
    "chars": 4030,
    "preview": "www glf w_w_w.liga\n*/ glf asterisk_slash.liga\n*** glf asterisk_asterisk_asterisk.liga\n** glf asterisk_asterisk.liga\n]# g"
  },
  {
    "path": "ligatures.fea.jinja2",
    "chars": 853,
    "preview": "languagesystem DFLT dflt;\nlanguagesystem latn dflt;\nlanguagesystem grek dflt;\nlanguagesystem cyrl dflt;\nlanguagesystem k"
  }
]

About this extraction

This page contains the full source code of the hakatashi/RictyDiminished-with-FiraCode GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 11 files (19.8 KB), approximately 6.3k tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!