- a
continuation line
- b
- shallow indented by baseline of list item
- d
- indented as same as list item
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# extension testbed | |
from datetime import datetime, timedelta | |
from itertools import islice | |
from operator import itemgetter | |
from typing import Dict, List | |
from sphinx.domains import Domain | |
from sphinx.util import logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from docutils import languages, nodes | |
from docutils.parsers.rst.states import Struct | |
from sphinx.writers.latex import LaTeXTranslator | |
def quote_role(typ, rawtext, text, lineno, inliner, options={}, content=[]): | |
language = languages.get_language(inliner.document.settings.language_code, | |
inliner.document.reporter) | |
memo = Struct(document=inliner.document, | |
reporter=inliner.document.reporter, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/docutils/docutils/parsers/rst/languages/af.py b/docutils/docutils/parsers/rst/languages/af.py | |
index 792bfca21..e3335d160 100644 | |
--- a/docutils/docutils/parsers/rst/languages/af.py | |
+++ b/docutils/docutils/parsers/rst/languages/af.py | |
@@ -104,3 +104,6 @@ roles = { | |
'rou': 'raw',} | |
"""Mapping of Afrikaans role names to canonical role names for interpreted text. | |
""" | |
+ | |
+east_asian_widths = 'WF' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
reStructuredText のグリッドテーブルに一部の全角文字(◯などの記号やキリル文字など)を使うと Malformed table 扱いされてビルドできない。 | |
そこで、このコードでは docutils が処理する前の原稿をハックし、Ambiguous な文字にパディングを入れ込むようにした。 | |
かなりの dirty hack ではあるが、単純なテーブルが動くことは確認できた。 | |
詳しくはこちらのスライド参照。 | |
https://speakerdeck.com/anzawatta/sphinxfalseteburudequan-jiao-ji-hao-woshi-itai-sphinxcon-jp-2018-53c329a6-e71a-4200-9374-2568f0c172b5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
エイチワークス | |
宮沢さくら様 | |
こんにちは、小宮と申します。 | |
Twitter で御社のコミュニティ支援に関する情報を拝見しました。 | |
私もいくつかのコミュニティに参加していますが、 | |
手弁当で運営されているものもまだまだ多い状況ですので、 | |
御社のように積極的なコミュニティへのサポートが表明されていると | |
一参加者としては非常にありがたいと感じています。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: aodag.pdf | |
%.dvi: %.tex | |
platex $< | |
%.pdf: %.dvi | |
dvipdfmx $< | |
clean: | |
rm -f *.aux *.log *.dvi *.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1] tkomiya@deneb> python3.6 | |
Python 3.6.5 (default, Mar 31 2018, 01:44:52) | |
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> def foo(**kwargs): | |
... return kwargs | |
... | |
>>> foo(async=True) | |
{'async': True} | |
>>> |