Artificial intelligent assistant

Sphinxで「|漢字《よみ》」という記法で文章中に振り仮名をつけたい場合、Sphinx拡張で対応は可能でしょうか? Sphinx ### <> Sphinx|Sphinx ### <> .. index::.. glossary:::index:| ### <> Sphinxsetupapp.add_xxxparser | 1. Sphinx 2. site-packages/sphinx/xxx.py 3. site-packages/docutils/xxx.py 2.. glossary:: Sphinx1 |:ruby:`<>`parser":" string ":" backquote string "<" string ">" backquote ### <> * < * < * < Sphinx1.OK2.Sphinx21 OK * * * * OK * | * `|^12b1` / `|,12b1` `|,,,,` `|,,` ※ ### <> * :r:`<>`… * \ |\ … * |… * | * \ \ … * … `|^11`



### parse


visit_TextOKURL

### parser

docutils.nodex.TextElement, TextprintTextElementTextExtTextExtText, visit_ExtText, depart_ExtText

TextElement

ExtText


class TextElement(Element):
child_text_separator = ''
"""Separator for child nodes, used by `astext()` method."""

def __init__(self, rawsource='', text='', *children, **attributes):
if text != '':
textnode = self.textclass(text)
Element.__init__(self, rawsource, textnode, *children,
**attributes)
else:
Element.__init__(self, rawsource, *children, **attributes)

def textclass(self, text):
return Text(text)


### parser

markdwonSphinx

### parser



1. //Text
* |
2. TextElement
* TextElement(ExText(''), ExText('’))
3. 1,2TextText



###

ExtText:role:`string`

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 1e908bcee7c6f989976d402f63a225ab