Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/PDFMathTranslate/PDFMathTranslate
/ remove_control_characters
Function
remove_control_characters
pdf2zh/translator.py:36–37 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
34
35
36
def
remove_control_characters(s):
37
return
""
.join(ch
for
ch in s
if
unicodedata.category(ch)[0] !=
"C"
)
38
39
40
class
BaseTranslator:
Callers
1
do_translate
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected