代码之家  ›  专栏  ›  技术社区  ›  Frank-Rene Schäfer

restructuredtext/sphinx:显式水平空间

  •  0
  • Frank-Rene Schäfer  · 技术社区  · 6 年前

    如何在sphinx/restructuredtext中显式插入水平间距?

    最初的问题是我想让发声符号_出现在空格上,但它总是显示在下一个单词的第一个字母上。

    1 回复  |  直到 6 年前
        1
  •  1
  •   Steve Piercy    6 年前

    假设是“U+064F:Arabic Damma”,它似乎是一个组合字符,这意味着, if I read this correctly. ,that it cannot be displayed inline and separate from another character,unless you tric用不间断的空间替换。我从这个答案中获取了一个 示例。

    this is damma nbsp damma
    
    …| DAMMA Unicode::U+064F..阿拉伯大麻
    …| nbsp Unicode::U+00A0..无中断空间
    < /代码> 
    
    

    我可以使用显示它的隔离。代码块::directive or as its own paragraph.

    >代码>代码块::文本 γ γ < /代码>

    除非用不间断空格替换,否则它不能以内联方式显示并与另一个字符分开。我抓住了一个example from this answer.

    this is |damma| |nbsp| damma
    
    .. |damma|  unicode:: U+064F .. ARABIC DAMMA
    .. |nbsp|   unicode:: U+00A0 .. NO-BREAK SPACE
    

    我可以用.. code-block::指示或作为其本身的段落。

    .. code-block:: text
    
        ُ
    
    
    ُ
    

    damma