Fix Impress examples

This commit is contained in:
Timothyxxx
2024-02-07 21:52:21 +08:00
parent 66304b3bab
commit 8dd62178be
9 changed files with 250 additions and 34 deletions

View File

@@ -1,12 +0,0 @@
{
"id": "071d4ace-091a-4ec3-886e-f4be55ae375d",
"snapshot": "libreoffice_impress",
"instruction": "Please hide slide numbers and slide footer on first and second slide",
"source": "https://superuser.com/questions/706860/hide-slide-numbers-and-slide-footer-on-first-and-second-slide-in-libreoffice-imp?rq=1",
"config": [],
"trajectory": "trajectories/",
"related_apps": [
""
],
"evaluator": "evaluation_dir"
}

View File

@@ -0,0 +1,35 @@
{
"id": "2cd43775-7085-45d8-89fa-9e35c0a915cf",
"snapshot": "libreoffice_impress",
"instruction": "Enable auto-save every 3min for me, so that I don't need to hit \"ctrl-s\" that much",
"source": "https://www.libreofficehelp.com/enable-autosave-libreoffice/",
"config": [
{
"type": "launch",
"parameters": {
"command": [
"libreoffice",
"--impress"
]
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"libreoffice_impress"
],
"evaluator": {
"func": "check_auto_saving_time",
"result": {
"type": "vm_file",
"path": "/home/user/.config/libreoffice/4/user/registrymodifications.xcu",
"dest": "registrymodifications.xcu"
},
"expected": {
"type": "rule",
"rules": {
"minutes": 3
}
}
}
}

View File

@@ -0,0 +1,76 @@
{
"id": "358aa0a7-6677-453f-ae35-e440f004c31e",
"snapshot": "libreoffice_impress",
"instruction": "Do you have any suggestions on how to modify the font for all text boxes in an Impress presentation? I want to standardize the font to 'Liberation Sans Narrow', but I don't want to manually select each individual text box.",
"source": "https://superuser.com/questions/296101/change-all-text-fonts-in-libreoffice-impress-presentation",
"config": [
{
"type": "download",
"parameters": {
"files": [
{
"url": "https://drive.usercontent.google.com/download?id=1ot4dssmIzd4_qkATrmwcmJAGVChg8b3M&export=download&authuser=0&confirm=t&uuid=442b7baf-95e0-4983-82e0-8b59f946e508&at=APZUnTUyzyB-2iFPUDdcT2ntpdCQ:1707296688907",
"path": "/home/user/Desktop/note-taking-strategies.pptx"
}
]
}
},
{
"type": "open",
"parameters": {
"path": "/home/user/Desktop/note-taking-strategies.pptx"
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"libreoffice_impress"
],
"evaluator": {
"postconfig": [
{
"type": "activate_window",
"parameters": {
"window_name": "note-taking-strategies.pptx - LibreOffice Impress",
"strict": true
}
},
{
"type": "sleep",
"parameters": {
"seconds": 3
}
},
{
"type": "execute",
"parameters": {
"command": [
"python",
"-c",
"import pyautogui; import time; pyautogui.hotkey('ctrl', 's'); time.sleep(0.5);"
]
}
},
{
"type": "sleep",
"parameters": {
"seconds": 0.5
}
}
],
"func": "compare_pptx_files",
"expected": {
"type": "cloud_file",
"path": "https://drive.usercontent.google.com/download?id=1bUCqqJhIuvWUkSxBjjo5O2ud2XN_kGsb&export=download&authuser=0&confirm=t&uuid=def54def-0383-4663-b3c4-2d740bc7904f&at=APZUnTWbv-n_VD2ArRkxCre9-5X1:1707298399387",
"dest": "note-taking-strategies_Gold.pptx"
},
"result": {
"type": "vm_file",
"path": "/home/user/Desktop/note-taking-strategies.pptx",
"dest": "note-taking-strategies.pptx"
},
"options": {
"examine_shape": false
}
}
}

View File

@@ -1,12 +0,0 @@
{
"id": "3cc4f35d-fa2e-4555-afb9-741b7c062a74",
"snapshot": "libreoffice_impress",
"instruction": "Could you help me create a master slide and rename it \"master\"?",
"source": "https://documentation.libreoffice.org/assets/Uploads/Documentation/en/IG7.6/IG76-ImpressGuide.pdf",
"config": [],
"trajectory": "trajectories/",
"related_apps": [
""
],
"evaluator": "evaluation_dir"
}

View File

@@ -0,0 +1,86 @@
{
"id": "a669ef01-ded5-4099-9ea9-25e99b569840",
"snapshot": "libreoffice_impress",
"instruction": "I want to do something like the following on Page 3 of the current LibreOffice Impress file:\n\n- Main idea\n- Sub topics\n - first point of sub topics\n - second point of sub topics\n continuation of the sub topics\n\nthe \"continuation of the sub topics\" is indented the same as the first line of the second item, but it's essentially a second paragraph (I wouldn't mind a nested subitems mechanism, but LO Impress doesn't work that way) with an indentation.\n\nCould you help me with it?",
"source": "https://superuser.com/questions/1628656/in-libreoffice-impress-how-can-i-have-a-bullet-indentation-no-bullet-item",
"config": [
{
"type": "download",
"parameters": {
"files": [
{
"url": "https://drive.usercontent.google.com/download?id=1C0u-Qvvwa6UbJVTzzQHfdNIgp2i051xA&export=download&authuser=0&confirm=t&uuid=5551a43c-3ff7-424f-b82c-50a5c96b5809&at=APZUnTViShb8pJUviOkmVtn7Pums:1707299959829",
"path": "/home/user/Desktop/Writing-Outlines.pptx"
}
]
}
},
{
"type": "open",
"parameters": {
"path": "/home/user/Desktop/Writing-Outlines.pptx"
}
},
{
"type": "execute",
"parameters": {
"command": [
"python",
"-c",
"import pyautogui; import time; pyautogui.click(960, 540); time.sleep(0.5);"
]
}
}
],
"trajectory": "trajectories/",
"related_apps": [
"libreoffice_impress"
],
"evaluator": {
"postconfig": [
{
"type": "activate_window",
"parameters": {
"window_name": "Writing-Outlines.pptx - LibreOffice Impress",
"strict": true
}
},
{
"type": "sleep",
"parameters": {
"seconds": 0.5
}
},
{
"type": "execute",
"parameters": {
"command": [
"python",
"-c",
"import pyautogui; import time; pyautogui.hotkey('ctrl', 's'); time.sleep(0.5);"
]
}
},
{
"type": "sleep",
"parameters": {
"seconds": 0.5
}
}
],
"func": "compare_pptx_files",
"expected": {
"type": "cloud_file",
"path": "https://drive.usercontent.google.com/download?id=1d4WJwm7KDhDIOJ9r9vKhRTrt_bF3PSln&export=download&authuser=0&confirm=t&uuid=a8ec87de-96cf-49f0-98e4-faa1218354fe&at=APZUnTWiOoiHFjyM4jTunLP4t5wE:1707299961717",
"dest": "Writing-Outlines_Gold.pptx"
},
"result": {
"type": "vm_file",
"path": "/home/user/Desktop/Writing-Outlines.pptx",
"dest": "Writing-Outlines.pptx"
},
"options": {
"examine_shape": false
}
}
}