remove spell checking feature

This commit is contained in:
Sina Atalay 2023-11-16 21:48:41 +01:00 committed by Jeffrey Goldberg
parent b139817bfa
commit 472c314fbc
2 changed files with 6 additions and 8 deletions

View File

@ -69,13 +69,12 @@ def escape_latex_characters(sentence: str) -> str:
# Handle backslash and curly braces separately because the other characters are
# escaped with backslash and curly braces:
# --don't escape curly braces as they are used heavily in LaTeX--:
# sentence = sentence.replace("{", ">>{")
# sentence = sentence.replace("}", ">>}")
# --don't escape backslash as it is used heavily in LaTeX--:
sentence = sentence.replace("{", ">>{")
sentence = sentence.replace("}", ">>}")
# don't escape backslash as it is used heavily in LaTeX:
# 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,
# replace it with its LaTeX equivalent:
@ -629,7 +628,6 @@ class Design(BaseModel):
# ======================================================================================
LaTeXString = Annotated[str, AfterValidator(escape_latex_characters)]
SpellCheckedString = Annotated[LaTeXString, AfterValidator(check_spelling)]
PastDate = Annotated[
str,
Field(pattern=r"\d{4}-?(\d{2})?-?(\d{2})?"),

View File

@ -2,7 +2,7 @@ from rendercv.__main__ import render
from rendercv.data_model import generate_json_schema
import os
input_file_path = "John_Doe_CV.yaml"
input_file_path = "SinaAtalay_CV.yaml"
render(input_file_path) # type: ignore
# This script is equivalent to running the following command in the terminal: