跳转到主要内容

𝔠𝔬𝔫𝔳𝔢𝔯𝔱 𝔱𝔥𝔢 𝔩𝔞𝔱𝔦𝔫 𝔞𝔩𝔭𝔥𝔞𝔟𝔢𝔱 𝔱𝔬 𝔣𝔯𝔞𝔨𝔱𝔲𝔯 𝔲𝔫𝔦𝔠𝔬𝔡𝔢 𝔠𝔥𝔞𝔯𝔞𝔠𝔱𝔢𝔯𝔰

项目描述

𝔣𝔯𝔞𝔨𝔱𝔲𝔯

𝔠𝔬𝔫𝔳𝔢𝔯𝔱 𝔱𝔥𝔢 𝔩𝔞𝔱𝔦𝔫 𝔞𝔩𝔭𝔥𝔞𝔟𝔢𝔱 𝔱𝔬 𝔣𝔯𝔞𝔨𝔱𝔲𝔯 𝔲𝔫𝔦𝔠𝔬𝔡𝔢 𝔠𝔥𝔞𝔯𝔞𝔠𝔱𝔢𝔯𝔰

这深受 substack𝔣𝔯𝔞𝔨𝔱𝔲𝔯 启发

𝕴𝔫𝔰𝔱𝔞𝔩𝔩𝔞𝔱𝔦𝔬𝔫

要安装 𝔣𝔯𝔞𝔨𝔱𝔲𝔯,只需

$ pip install fraktur

𝔘𝔰𝔞𝔤𝔢

import fraktur

print fraktur.encode('Carpe Diem')
print fraktur.decode(u'𝕮𝔞𝔯𝔭𝔢 𝔇𝔦𝔢𝔪')

示例

import fraktur

quote = """So avoid using the word 'very' because it's lazy.
A man is not very tired, he is exhausted.
Don't use very sad, use morose.
Language was invented for one reason,
boys - to woo women - and, in that endeavor,
laziness will not do. It also won't do in your essays."""

print fraktur.encode(quote)
print
print fraktur.decode(fraktur.encode(quote))
example

𝔏𝔦𝔫𝔨

𝔣𝔯𝔞𝔨𝔱𝔲𝔯 𝔲𝔫𝔦𝔠𝔬𝔡𝔢 𝔠𝔥𝔞𝔯𝔞𝔠𝔱𝔢𝔯𝔰

𝔏𝔦𝔠𝔢𝔫𝔰𝔢

𝔐𝕴𝔗

由以下支持