add eval libreoffice writer font & page break

This commit is contained in:
tsuky_chen
2023-12-30 16:32:15 +08:00
parent 86ce9e1497
commit 24f33dc9bf
5 changed files with 87 additions and 8 deletions

View File

@@ -19,8 +19,9 @@
"type": "open",
"parameters": {
"path": "Desktop/OrderId_Month_Chart.xlsx"
]
},
}
}
],
"trajectory": "trajectories/2bd59342-0664-4ccb-ba87-79379096cc08",
"related_apps": [
"libreoffice calc"
@@ -38,4 +39,4 @@
"dest": "OrderId_Month_Chart.xlsx"
}
}
}
}

View File

@@ -8,5 +8,12 @@
"related_apps": [
"libreoffice_writer"
],
"evaluator": "evaluation_dir"
}
"evaluator": {
"func": "contains_page_break",
"result": {
"type": "vm_file",
"path": "Desktop/Insert_Blank_Page.docx",
"dest": "Insert_Blank_Page.docx"
}
}
}

View File

@@ -3,10 +3,36 @@
"snapshot": "libreoffice_writer",
"instruction": "Make Times New Roman the default Font",
"source": "https://ask.libreoffice.org/t/how-do-i-make-times-new-roman-the-default-font-in-lo/64604",
"config": [],
"config": [
{
"type": "download",
"parameters": {
"files": [
{
"url": "https://drive.usercontent.google.com/download?id=1rwhniaClEkF8XFzdfaNUA6GmAiy4syMZ&export=download&authuser=0&confirm=t&uuid=6fdd5b04-85f4-45e1-ad74-368f8f2a82ab&at=APZUnTUP-JxPxLfNls6jXWghblQ5:1701766091851",
"path": "Desktop/Set_Default_Font.docx"
}
]
}
},
{
"type": "open",
"parameters": {
"path": "Desktop/Set_Default_Font.docx"
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"libreoffice_writer"
],
"evaluator": "evaluation_dir"
}
"evaluator": {
"func": "find_default_font",
"expected": "Times New Roman",
"result": {
"type": "vm_file",
"path": "/home/[your-username]/.config/libreoffice/4/user/registrymodifications.xcu",
"dest": "registrymodifications.xcu"
}
}
}