mirror of
https://github.com/rendercv/rendercv.git
synced 2025-12-23 21:47:55 -05:00
Comment out locale part in sample content
This commit is contained in:
@@ -4910,8 +4910,8 @@ endobj
|
|||||||
<<
|
<<
|
||||||
/Type /Annot
|
/Type /Annot
|
||||||
/Subtype /Link
|
/Subtype /Link
|
||||||
/Rect [56.06929 397.4389 149.3393 410.0389]
|
/Rect [56.06929 397.4389 149.3393 410.0389]
|
||||||
/Border [0 0 0]
|
/Border [0 0 0]
|
||||||
/A <<
|
/A <<
|
||||||
/Type /Action
|
/Type /Action
|
||||||
/S /URI
|
/S /URI
|
||||||
@@ -4922,7 +4922,7 @@ endobj
|
|||||||
/Contents (https://doi.org/10.1234/iclr.2021.3456)
|
/Contents (https://doi.org/10.1234/iclr.2021.3456)
|
||||||
>>
|
>>
|
||||||
endobj
|
endobj
|
||||||
|
|
||||||
413 0 obj
|
413 0 obj
|
||||||
<<
|
<<
|
||||||
/Type /Page
|
/Type /Page
|
||||||
@@ -5372,7 +5372,7 @@ trailer
|
|||||||
0000029312 00000 n
|
0000029312 00000 n
|
||||||
0000029396 00000 n
|
0000029396 00000 n
|
||||||
0000029485 00000 n
|
0000029485 00000 n
|
||||||
0000029576 00000 n
|
0000029576 00000 n
|
||||||
0000029665 00000 n
|
0000029665 00000 n
|
||||||
0000029749 00000 n
|
0000029749 00000 n
|
||||||
0000029838 00000 n
|
0000029838 00000 n
|
||||||
|
|||||||
@@ -318,40 +318,40 @@ design:
|
|||||||
# date_and_location_column: DATE
|
# date_and_location_column: DATE
|
||||||
locale:
|
locale:
|
||||||
language: english
|
language: english
|
||||||
last_updated: Last updated in
|
# last_updated: Last updated in
|
||||||
month: month
|
# month: month
|
||||||
months: months
|
# months: months
|
||||||
year: year
|
# year: year
|
||||||
years: years
|
# years: years
|
||||||
present: present
|
# present: present
|
||||||
month_abbreviations:
|
# month_abbreviations:
|
||||||
- Jan
|
# - Jan
|
||||||
- Feb
|
# - Feb
|
||||||
- Mar
|
# - Mar
|
||||||
- Apr
|
# - Apr
|
||||||
- May
|
# - May
|
||||||
- June
|
# - June
|
||||||
- July
|
# - July
|
||||||
- Aug
|
# - Aug
|
||||||
- Sept
|
# - Sept
|
||||||
- Oct
|
# - Oct
|
||||||
- Nov
|
# - Nov
|
||||||
- Dec
|
# - Dec
|
||||||
month_names:
|
# month_names:
|
||||||
- January
|
# - January
|
||||||
- February
|
# - February
|
||||||
- March
|
# - March
|
||||||
- April
|
# - April
|
||||||
- May
|
# - May
|
||||||
- June
|
# - June
|
||||||
- July
|
# - July
|
||||||
- August
|
# - August
|
||||||
- September
|
# - September
|
||||||
- October
|
# - October
|
||||||
- November
|
# - November
|
||||||
- December
|
# - December
|
||||||
settings:
|
settings:
|
||||||
current_date: '2025-12-09'
|
current_date: '2025-12-10'
|
||||||
render_command:
|
render_command:
|
||||||
design:
|
design:
|
||||||
locale:
|
locale:
|
||||||
|
|||||||
@@ -4831,8 +4831,8 @@ endobj
|
|||||||
>>
|
>>
|
||||||
/F 4
|
/F 4
|
||||||
/StructParent 17
|
/StructParent 17
|
||||||
/Contents (https://doi.org/10.1234/neurips.2022.5678)
|
/Contents (https://doi.org/10.1234/neurips.2022.5678)
|
||||||
>>
|
>>
|
||||||
endobj
|
endobj
|
||||||
|
|
||||||
401 0 obj
|
401 0 obj
|
||||||
@@ -4843,7 +4843,7 @@ endobj
|
|||||||
/Border [0 0 0]
|
/Border [0 0 0]
|
||||||
/A <<
|
/A <<
|
||||||
/Type /Action
|
/Type /Action
|
||||||
/S /URI
|
/S /URI
|
||||||
/URI (https://doi.org/10.1234/icml.2022.9012)
|
/URI (https://doi.org/10.1234/icml.2022.9012)
|
||||||
>>
|
>>
|
||||||
/F 4
|
/F 4
|
||||||
@@ -5283,7 +5283,7 @@ trailer
|
|||||||
0000025200 00000 n
|
0000025200 00000 n
|
||||||
0000025282 00000 n
|
0000025282 00000 n
|
||||||
0000025371 00000 n
|
0000025371 00000 n
|
||||||
0000025453 00000 n
|
0000025453 00000 n
|
||||||
0000025550 00000 n
|
0000025550 00000 n
|
||||||
0000025644 00000 n
|
0000025644 00000 n
|
||||||
0000025802 00000 n
|
0000025802 00000 n
|
||||||
|
|||||||
@@ -311,40 +311,40 @@ design:
|
|||||||
# date_and_location_column: DATE
|
# date_and_location_column: DATE
|
||||||
locale:
|
locale:
|
||||||
language: english
|
language: english
|
||||||
last_updated: Last updated in
|
# last_updated: Last updated in
|
||||||
month: month
|
# month: month
|
||||||
months: months
|
# months: months
|
||||||
year: year
|
# year: year
|
||||||
years: years
|
# years: years
|
||||||
present: present
|
# present: present
|
||||||
month_abbreviations:
|
# month_abbreviations:
|
||||||
- Jan
|
# - Jan
|
||||||
- Feb
|
# - Feb
|
||||||
- Mar
|
# - Mar
|
||||||
- Apr
|
# - Apr
|
||||||
- May
|
# - May
|
||||||
- June
|
# - June
|
||||||
- July
|
# - July
|
||||||
- Aug
|
# - Aug
|
||||||
- Sept
|
# - Sept
|
||||||
- Oct
|
# - Oct
|
||||||
- Nov
|
# - Nov
|
||||||
- Dec
|
# - Dec
|
||||||
month_names:
|
# month_names:
|
||||||
- January
|
# - January
|
||||||
- February
|
# - February
|
||||||
- March
|
# - March
|
||||||
- April
|
# - April
|
||||||
- May
|
# - May
|
||||||
- June
|
# - June
|
||||||
- July
|
# - July
|
||||||
- August
|
# - August
|
||||||
- September
|
# - September
|
||||||
- October
|
# - October
|
||||||
- November
|
# - November
|
||||||
- December
|
# - December
|
||||||
settings:
|
settings:
|
||||||
current_date: '2025-12-09'
|
current_date: '2025-12-10'
|
||||||
render_command:
|
render_command:
|
||||||
design:
|
design:
|
||||||
locale:
|
locale:
|
||||||
|
|||||||
@@ -4397,8 +4397,8 @@ endobj
|
|||||||
|
|
||||||
384 0 obj
|
384 0 obj
|
||||||
<<
|
<<
|
||||||
/Type /Annot
|
/Type /Annot
|
||||||
/Subtype /Link
|
/Subtype /Link
|
||||||
/Rect [50.4 369.83456 154.04 382.54456]
|
/Rect [50.4 369.83456 154.04 382.54456]
|
||||||
/Border [0 0 0]
|
/Border [0 0 0]
|
||||||
/A <<
|
/A <<
|
||||||
@@ -4409,7 +4409,7 @@ endobj
|
|||||||
/F 4
|
/F 4
|
||||||
/StructParent 11
|
/StructParent 11
|
||||||
/Contents (https://doi.org/10.1234/iclr.2021.3456)
|
/Contents (https://doi.org/10.1234/iclr.2021.3456)
|
||||||
>>
|
>>
|
||||||
endobj
|
endobj
|
||||||
|
|
||||||
385 0 obj
|
385 0 obj
|
||||||
@@ -4831,7 +4831,7 @@ trailer
|
|||||||
0000026428 00000 n
|
0000026428 00000 n
|
||||||
0000026522 00000 n
|
0000026522 00000 n
|
||||||
0000026680 00000 n
|
0000026680 00000 n
|
||||||
0000026769 00000 n
|
0000026769 00000 n
|
||||||
0000026853 00000 n
|
0000026853 00000 n
|
||||||
0000026942 00000 n
|
0000026942 00000 n
|
||||||
0000027033 00000 n
|
0000027033 00000 n
|
||||||
|
|||||||
@@ -311,40 +311,40 @@ design:
|
|||||||
# date_and_location_column: DATE
|
# date_and_location_column: DATE
|
||||||
locale:
|
locale:
|
||||||
language: english
|
language: english
|
||||||
last_updated: Last updated in
|
# last_updated: Last updated in
|
||||||
month: month
|
# month: month
|
||||||
months: months
|
# months: months
|
||||||
year: year
|
# year: year
|
||||||
years: years
|
# years: years
|
||||||
present: present
|
# present: present
|
||||||
month_abbreviations:
|
# month_abbreviations:
|
||||||
- Jan
|
# - Jan
|
||||||
- Feb
|
# - Feb
|
||||||
- Mar
|
# - Mar
|
||||||
- Apr
|
# - Apr
|
||||||
- May
|
# - May
|
||||||
- June
|
# - June
|
||||||
- July
|
# - July
|
||||||
- Aug
|
# - Aug
|
||||||
- Sept
|
# - Sept
|
||||||
- Oct
|
# - Oct
|
||||||
- Nov
|
# - Nov
|
||||||
- Dec
|
# - Dec
|
||||||
month_names:
|
# month_names:
|
||||||
- January
|
# - January
|
||||||
- February
|
# - February
|
||||||
- March
|
# - March
|
||||||
- April
|
# - April
|
||||||
- May
|
# - May
|
||||||
- June
|
# - June
|
||||||
- July
|
# - July
|
||||||
- August
|
# - August
|
||||||
- September
|
# - September
|
||||||
- October
|
# - October
|
||||||
- November
|
# - November
|
||||||
- December
|
# - December
|
||||||
settings:
|
settings:
|
||||||
current_date: '2025-12-09'
|
current_date: '2025-12-10'
|
||||||
render_command:
|
render_command:
|
||||||
design:
|
design:
|
||||||
locale:
|
locale:
|
||||||
|
|||||||
@@ -5325,8 +5325,8 @@ endobj
|
|||||||
446 0 obj
|
446 0 obj
|
||||||
<<
|
<<
|
||||||
/Type /Annot
|
/Type /Annot
|
||||||
/Subtype /Link
|
/Subtype /Link
|
||||||
/Rect [176.54173 292.9539 262.22174 305.66388]
|
/Rect [176.54173 292.9539 262.22174 305.66388]
|
||||||
/Border [0 0 0]
|
/Border [0 0 0]
|
||||||
/A <<
|
/A <<
|
||||||
/Type /Action
|
/Type /Action
|
||||||
@@ -5337,7 +5337,7 @@ endobj
|
|||||||
/StructParent 19
|
/StructParent 19
|
||||||
/Contents (https://doi.org/10.1234/iclr.2021.3456)
|
/Contents (https://doi.org/10.1234/iclr.2021.3456)
|
||||||
>>
|
>>
|
||||||
endobj
|
endobj
|
||||||
|
|
||||||
447 0 obj
|
447 0 obj
|
||||||
<<
|
<<
|
||||||
@@ -5821,7 +5821,7 @@ trailer
|
|||||||
0000033410 00000 n
|
0000033410 00000 n
|
||||||
0000033499 00000 n
|
0000033499 00000 n
|
||||||
0000033590 00000 n
|
0000033590 00000 n
|
||||||
0000033679 00000 n
|
0000033679 00000 n
|
||||||
0000033763 00000 n
|
0000033763 00000 n
|
||||||
0000033852 00000 n
|
0000033852 00000 n
|
||||||
0000033943 00000 n
|
0000033943 00000 n
|
||||||
|
|||||||
@@ -311,40 +311,40 @@ design:
|
|||||||
# date_and_location_column: DATE
|
# date_and_location_column: DATE
|
||||||
locale:
|
locale:
|
||||||
language: english
|
language: english
|
||||||
last_updated: Last updated in
|
# last_updated: Last updated in
|
||||||
month: month
|
# month: month
|
||||||
months: months
|
# months: months
|
||||||
year: year
|
# year: year
|
||||||
years: years
|
# years: years
|
||||||
present: present
|
# present: present
|
||||||
month_abbreviations:
|
# month_abbreviations:
|
||||||
- Jan
|
# - Jan
|
||||||
- Feb
|
# - Feb
|
||||||
- Mar
|
# - Mar
|
||||||
- Apr
|
# - Apr
|
||||||
- May
|
# - May
|
||||||
- June
|
# - June
|
||||||
- July
|
# - July
|
||||||
- Aug
|
# - Aug
|
||||||
- Sept
|
# - Sept
|
||||||
- Oct
|
# - Oct
|
||||||
- Nov
|
# - Nov
|
||||||
- Dec
|
# - Dec
|
||||||
month_names:
|
# month_names:
|
||||||
- January
|
# - January
|
||||||
- February
|
# - February
|
||||||
- March
|
# - March
|
||||||
- April
|
# - April
|
||||||
- May
|
# - May
|
||||||
- June
|
# - June
|
||||||
- July
|
# - July
|
||||||
- August
|
# - August
|
||||||
- September
|
# - September
|
||||||
- October
|
# - October
|
||||||
- November
|
# - November
|
||||||
- December
|
# - December
|
||||||
settings:
|
settings:
|
||||||
current_date: '2025-12-09'
|
current_date: '2025-12-10'
|
||||||
render_command:
|
render_command:
|
||||||
design:
|
design:
|
||||||
locale:
|
locale:
|
||||||
|
|||||||
@@ -4848,8 +4848,8 @@ endobj
|
|||||||
<<
|
<<
|
||||||
/Type /Annot
|
/Type /Annot
|
||||||
/Subtype /Link
|
/Subtype /Link
|
||||||
/Rect [56.06929 422.5909 157.73929 435.4209]
|
/Rect [56.06929 422.5909 157.73929 435.4209]
|
||||||
/Border [0 0 0]
|
/Border [0 0 0]
|
||||||
/A <<
|
/A <<
|
||||||
/Type /Action
|
/Type /Action
|
||||||
/S /URI
|
/S /URI
|
||||||
@@ -4860,7 +4860,7 @@ endobj
|
|||||||
/Contents (https://doi.org/10.1234/icml.2022.9012)
|
/Contents (https://doi.org/10.1234/icml.2022.9012)
|
||||||
>>
|
>>
|
||||||
endobj
|
endobj
|
||||||
|
|
||||||
425 0 obj
|
425 0 obj
|
||||||
<<
|
<<
|
||||||
/Type /Annot
|
/Type /Annot
|
||||||
@@ -5323,7 +5323,7 @@ trailer
|
|||||||
0000028487 00000 n
|
0000028487 00000 n
|
||||||
0000028645 00000 n
|
0000028645 00000 n
|
||||||
0000028734 00000 n
|
0000028734 00000 n
|
||||||
0000028818 00000 n
|
0000028818 00000 n
|
||||||
0000028907 00000 n
|
0000028907 00000 n
|
||||||
0000028998 00000 n
|
0000028998 00000 n
|
||||||
0000029087 00000 n
|
0000029087 00000 n
|
||||||
|
|||||||
@@ -319,40 +319,40 @@ design:
|
|||||||
# date_and_location_column: DATE
|
# date_and_location_column: DATE
|
||||||
locale:
|
locale:
|
||||||
language: english
|
language: english
|
||||||
last_updated: Last updated in
|
# last_updated: Last updated in
|
||||||
month: month
|
# month: month
|
||||||
months: months
|
# months: months
|
||||||
year: year
|
# year: year
|
||||||
years: years
|
# years: years
|
||||||
present: present
|
# present: present
|
||||||
month_abbreviations:
|
# month_abbreviations:
|
||||||
- Jan
|
# - Jan
|
||||||
- Feb
|
# - Feb
|
||||||
- Mar
|
# - Mar
|
||||||
- Apr
|
# - Apr
|
||||||
- May
|
# - May
|
||||||
- June
|
# - June
|
||||||
- July
|
# - July
|
||||||
- Aug
|
# - Aug
|
||||||
- Sept
|
# - Sept
|
||||||
- Oct
|
# - Oct
|
||||||
- Nov
|
# - Nov
|
||||||
- Dec
|
# - Dec
|
||||||
month_names:
|
# month_names:
|
||||||
- January
|
# - January
|
||||||
- February
|
# - February
|
||||||
- March
|
# - March
|
||||||
- April
|
# - April
|
||||||
- May
|
# - May
|
||||||
- June
|
# - June
|
||||||
- July
|
# - July
|
||||||
- August
|
# - August
|
||||||
- September
|
# - September
|
||||||
- October
|
# - October
|
||||||
- November
|
# - November
|
||||||
- December
|
# - December
|
||||||
settings:
|
settings:
|
||||||
current_date: '2025-12-09'
|
current_date: '2025-12-10'
|
||||||
render_command:
|
render_command:
|
||||||
design:
|
design:
|
||||||
locale:
|
locale:
|
||||||
|
|||||||
@@ -188,8 +188,19 @@ def create_sample_yaml_input_file(
|
|||||||
]
|
]
|
||||||
yaml_design_field = yaml_design_theme_part + "\n".join(below_design) + "\n"
|
yaml_design_field = yaml_design_theme_part + "\n".join(below_design) + "\n"
|
||||||
|
|
||||||
yaml_locale_and_settings_fields = yaml_locale_part + split_yaml_string[1]
|
# Handle locale field commenting (similar to design)
|
||||||
yaml_string = yaml_cv_field + yaml_design_field + yaml_locale_and_settings_fields
|
locale_and_settings = split_yaml_string[1]
|
||||||
|
settings_part = "settings:\n"
|
||||||
|
split_by_settings = locale_and_settings.split(settings_part)
|
||||||
|
below_locale = split_by_settings[0]
|
||||||
|
below_locale_commented = [
|
||||||
|
f" {line.replace(' ', '# ', 1)}"
|
||||||
|
for line in below_locale.splitlines(keepends=False)
|
||||||
|
]
|
||||||
|
yaml_locale_field = yaml_locale_part + "\n".join(below_locale_commented) + "\n"
|
||||||
|
yaml_settings_field = settings_part + split_by_settings[1]
|
||||||
|
|
||||||
|
yaml_string = yaml_cv_field + yaml_design_field + yaml_locale_field + yaml_settings_field
|
||||||
|
|
||||||
if file_path is not None:
|
if file_path is not None:
|
||||||
file_path.write_text(yaml_string, encoding="utf-8")
|
file_path.write_text(yaml_string, encoding="utf-8")
|
||||||
|
|||||||
Reference in New Issue
Block a user