mirror of https://github.com/eyhc1/rendercv.git
remove spell checking feature
This commit is contained in:
parent
b139817bfa
commit
472c314fbc
|
@ -69,13 +69,12 @@ def escape_latex_characters(sentence: str) -> str:
|
||||||
|
|
||||||
# Handle backslash and curly braces separately because the other characters are
|
# Handle backslash and curly braces separately because the other characters are
|
||||||
# escaped with backslash and curly braces:
|
# escaped with backslash and curly braces:
|
||||||
# --don't escape curly braces as they are used heavily in LaTeX--:
|
sentence = sentence.replace("{", ">>{")
|
||||||
# sentence = sentence.replace("{", ">>{")
|
sentence = sentence.replace("}", ">>}")
|
||||||
# sentence = sentence.replace("}", ">>}")
|
# don't escape backslash as it is used heavily in LaTeX:
|
||||||
# --don't escape backslash as it is used heavily in LaTeX--:
|
|
||||||
# sentence = sentence.replace("\\", "\\textbackslash{}")
|
# sentence = sentence.replace("\\", "\\textbackslash{}")
|
||||||
# sentence = sentence.replace(">>{", "\\{")
|
sentence = sentence.replace(">>{", "\\{")
|
||||||
# sentence = sentence.replace(">>}", "\\}")
|
sentence = sentence.replace(">>}", "\\}")
|
||||||
|
|
||||||
# Loop through the letters of the sentence and if you find an escape character,
|
# Loop through the letters of the sentence and if you find an escape character,
|
||||||
# replace it with its LaTeX equivalent:
|
# replace it with its LaTeX equivalent:
|
||||||
|
@ -629,7 +628,6 @@ class Design(BaseModel):
|
||||||
# ======================================================================================
|
# ======================================================================================
|
||||||
|
|
||||||
LaTeXString = Annotated[str, AfterValidator(escape_latex_characters)]
|
LaTeXString = Annotated[str, AfterValidator(escape_latex_characters)]
|
||||||
SpellCheckedString = Annotated[LaTeXString, AfterValidator(check_spelling)]
|
|
||||||
PastDate = Annotated[
|
PastDate = Annotated[
|
||||||
str,
|
str,
|
||||||
Field(pattern=r"\d{4}-?(\d{2})?-?(\d{2})?"),
|
Field(pattern=r"\d{4}-?(\d{2})?-?(\d{2})?"),
|
||||||
|
|
|
@ -2,7 +2,7 @@ from rendercv.__main__ import render
|
||||||
from rendercv.data_model import generate_json_schema
|
from rendercv.data_model import generate_json_schema
|
||||||
import os
|
import os
|
||||||
|
|
||||||
input_file_path = "John_Doe_CV.yaml"
|
input_file_path = "SinaAtalay_CV.yaml"
|
||||||
render(input_file_path) # type: ignore
|
render(input_file_path) # type: ignore
|
||||||
|
|
||||||
# This script is equivalent to running the following command in the terminal:
|
# This script is equivalent to running the following command in the terminal:
|
||||||
|
|
Loading…
Reference in New Issue