add libreoffice examples for windows
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": "0810415c-bde4-4443-9047-d5f70165a697",
|
||||
"snapshot": "libreoffice_writer",
|
||||
"snapshot": "word",
|
||||
"instruction": "Make the line spacing of first two paragraph into double line spacing",
|
||||
"source": "https://www.youtube.com/watch?v=Q_AaL6ljudU",
|
||||
"config": [
|
||||
@@ -24,14 +24,14 @@
|
||||
],
|
||||
"trajectory": "trajectories/",
|
||||
"related_apps": [
|
||||
"libreoffice_writer"
|
||||
"word"
|
||||
],
|
||||
"evaluator": {
|
||||
"postconfig": [
|
||||
{
|
||||
"type": "activate_window",
|
||||
"parameters": {
|
||||
"window_name": "Novels_Intro_Packet.docx - LibreOffice Writer",
|
||||
"window_name": "Novels_Intro_Packet - Word",
|
||||
"strict": true
|
||||
}
|
||||
},
|
||||
@@ -47,7 +47,7 @@
|
||||
"command": [
|
||||
"python",
|
||||
"-c",
|
||||
"import pyautogui; import time; pyautogui.hotkey(\"ctrl\", \"s\"); time.sleep(0.5); pyautogui.press(\"enter\");"
|
||||
"import pyautogui; import time; pyautogui.hotkey(\"ctrl\", \"s\"); time.sleep(0.5);"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": "0b17a146-2934-46c7-8727-73ff6b6483e8",
|
||||
"snapshot": "libreoffice_writer",
|
||||
"snapshot": "word",
|
||||
"instruction": "Help me change the 2 in \"H2O\" to a subscript.",
|
||||
"source": "https://askubuntu.com/questions/245695/how-do-you-insert-subscripts-and-superscripts-into-ordinary-non-formula-text-i",
|
||||
"config": [
|
||||
@@ -24,14 +24,14 @@
|
||||
],
|
||||
"trajectory": "trajectories/",
|
||||
"related_apps": [
|
||||
"libreoffice_writer"
|
||||
"word"
|
||||
],
|
||||
"evaluator": {
|
||||
"postconfig": [
|
||||
{
|
||||
"type": "activate_window",
|
||||
"parameters": {
|
||||
"window_name": "H2O_Factsheet_WA.docx - LibreOffice Writer",
|
||||
"window_name": "H2O_Factsheet_WA - Word",
|
||||
"strict": true
|
||||
}
|
||||
},
|
||||
@@ -47,7 +47,7 @@
|
||||
"command": [
|
||||
"python",
|
||||
"-c",
|
||||
"import pyautogui; import time; pyautogui.hotkey(\"ctrl\", \"s\"); time.sleep(0.5); pyautogui.press(\"enter\");"
|
||||
"import pyautogui; import time; pyautogui.hotkey(\"ctrl\", \"s\"); time.sleep(0.5);"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": "0e763496-b6bb-4508-a427-fad0b6c3e195",
|
||||
"snapshot": "libreoffice_writer",
|
||||
"snapshot": "word",
|
||||
"instruction": "Change the font to \"Times New Roman\" throughout the text.",
|
||||
"source": "https://ask.libreoffice.org/t/how-do-i-change-the-font-for-the-whole-document-in-writer/9220",
|
||||
"config": [
|
||||
@@ -24,14 +24,14 @@
|
||||
],
|
||||
"trajectory": "trajectories/",
|
||||
"related_apps": [
|
||||
"libreoffice_writer"
|
||||
"word"
|
||||
],
|
||||
"evaluator": {
|
||||
"postconfig": [
|
||||
{
|
||||
"type": "activate_window",
|
||||
"parameters": {
|
||||
"window_name": "Dublin_Zoo_Intro.docx - LibreOffice Writer",
|
||||
"window_name": "Dublin_Zoo_Intro - Word",
|
||||
"strict": true
|
||||
}
|
||||
},
|
||||
@@ -47,7 +47,7 @@
|
||||
"command": [
|
||||
"python",
|
||||
"-c",
|
||||
"import pyautogui; import time; pyautogui.hotkey(\"ctrl\", \"s\"); time.sleep(0.5); pyautogui.press(\"enter\");"
|
||||
"import pyautogui; import time; pyautogui.hotkey(\"ctrl\", \"s\"); time.sleep(5);"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": "3ef2b351-8a84-4ff2-8724-d86eae9b842e",
|
||||
"snapshot": "libreoffice_writer",
|
||||
"snapshot": "word",
|
||||
"instruction": "Help me center align the heading in LibreOffice.",
|
||||
"source": "https://askubuntu.com/questions/1066351/how-do-you-center-align-in-libreoffice#:~:text=Ctrl%20%2B%20e%20will%20Center%20align%20the%20cursor%20for%20you.",
|
||||
"config": [
|
||||
@@ -24,14 +24,14 @@
|
||||
],
|
||||
"trajectory": "trajectories/",
|
||||
"related_apps": [
|
||||
"libreoffice_writer"
|
||||
"word"
|
||||
],
|
||||
"evaluator": {
|
||||
"postconfig": [
|
||||
{
|
||||
"type": "activate_window",
|
||||
"parameters": {
|
||||
"window_name": "Constitution_Template_With_Guidelines.docx - LibreOffice Writer",
|
||||
"window_name": "Constitution_Template_With_Guidelines - Word",
|
||||
"strict": true
|
||||
}
|
||||
},
|
||||
@@ -47,7 +47,7 @@
|
||||
"command": [
|
||||
"python",
|
||||
"-c",
|
||||
"import pyautogui; import time; pyautogui.hotkey(\"ctrl\", \"s\"); time.sleep(0.5); pyautogui.press(\"enter\");"
|
||||
"import pyautogui; import time; pyautogui.hotkey(\"ctrl\", \"s\"); time.sleep(5);"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
{
|
||||
"id": "45d61a06-6545-4422-97b7-bc76cfa964c1",
|
||||
"snapshot": "libreoffice_writer",
|
||||
"instruction": "Replace all newlines with paragraph marks in LibreOffice Writer",
|
||||
"source": "https://stackoverflow.com/questions/71685737/how-to-replace-all-newlines-with-paragraph-marks-in-libreoffice-write",
|
||||
"config": [
|
||||
{
|
||||
"type": "download",
|
||||
"parameters": {
|
||||
"files": [
|
||||
{
|
||||
"url": "https://drive.usercontent.google.com/download?id=16lQcSkw-JQ_v8Sg0HkCtnOzyK-4cok8N&export=download&authuser=0&confirm=t&uuid=a3f833ae-2572-4cf3-8a21-6d250e689415&at=APZUnTUfn24NGMtXEzz2Nf7cFLjt:1704975857398",
|
||||
"path": "C:\\Users\\chenj\\NOVEL_Submission_Guidelines.docx"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "open",
|
||||
"parameters": {
|
||||
"path": "C:\\Users\\chenj\\NOVEL_Submission_Guidelines.docx"
|
||||
}
|
||||
}
|
||||
],
|
||||
"trajectory": "trajectories/",
|
||||
"related_apps": [
|
||||
"libreoffice_writer"
|
||||
],
|
||||
"evaluator": {
|
||||
"postconfig": [
|
||||
{
|
||||
"type": "activate_window",
|
||||
"parameters": {
|
||||
"window_name": "NOVEL_Submission_Guidelines.docx - LibreOffice Writer",
|
||||
"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); "
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"func": "compare_line_spacing",
|
||||
"expected": {
|
||||
"type": "cloud_file",
|
||||
"path": "https://drive.usercontent.google.com/download?id=1LaS5ObaOsbyKX1M17vi8ZseZwawgvNmf&export=download&authuser=0&confirm=t&uuid=db523e81-fa22-4002-97ff-e5dff92106a7&at=APZUnTVnT3ZYOGW7ZQdeW4SZP7mX:1704975993684",
|
||||
"dest": "NOVEL_Submission_Guidelines_Gold.docx"
|
||||
},
|
||||
"result": {
|
||||
"type": "vm_file",
|
||||
"path": "C:\\Users\\chenj\\NOVEL_Submission_Guidelines.docx",
|
||||
"dest": "NOVEL_Submission_Guidelines.docx"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": "4bcb1253-a636-4df4-8cb0-a35c04dfef31",
|
||||
"snapshot": "libreoffice_writer",
|
||||
"snapshot": "word",
|
||||
"instruction": "Export the current document into PDF, keep the file name",
|
||||
"source": "https://www.libreofficehelp.com/save-export-writer-documents-in-pdf-epub-format/",
|
||||
"config": [
|
||||
@@ -24,7 +24,7 @@
|
||||
],
|
||||
"trajectory": "trajectories/",
|
||||
"related_apps": [
|
||||
"libreoffice_writer"
|
||||
"word"
|
||||
],
|
||||
"evaluator": {
|
||||
"func": "compare_pdfs",
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
{
|
||||
"id": "66399b0d-8fda-4618-95c4-bfc6191617e9",
|
||||
"snapshot": "libreoffice_writer",
|
||||
"instruction": "Could you help me insert a 7(columns)*5(rows) empty table at the point of cursor?",
|
||||
"source": "https://www.youtube.com/watch?v=l25Evu4ohKg",
|
||||
"config": [
|
||||
{
|
||||
"type": "download",
|
||||
"parameters": {
|
||||
"files": [
|
||||
{
|
||||
"url": "https://drive.usercontent.google.com/download?id=1yeD0YIFCSEAdi6MPiiqLe6F4a19I5wZP&export=download&authuser=0&confirm=t&uuid=b6693633-00d7-4a8b-b35e-77ec452dd6a3&at=APZUnTVHRdoysZFBTmGmX6rCJLHK:1706330570587",
|
||||
"path": "C:\\Users\\chenj\\Table_Of_Work_Effort_Instructions.docx"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "open",
|
||||
"parameters": {
|
||||
"path": "C:\\Users\\chenj\\Table_Of_Work_Effort_Instructions.docx"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "execute",
|
||||
"parameters": {
|
||||
"command": [
|
||||
"python",
|
||||
"-c",
|
||||
"import pyautogui; import time; pyautogui.press(\"down\", presses=40, interval=0.01); time.sleep(1); pyautogui.scroll(-2)"
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"trajectory": "trajectories/",
|
||||
"related_apps": [
|
||||
"libreoffice_writer"
|
||||
],
|
||||
"evaluator": {
|
||||
"postconfig": [
|
||||
{
|
||||
"type": "activate_window",
|
||||
"parameters": {
|
||||
"window_name": "Table_Of_Work_Effort_Instructions.docx - LibreOffice Writer",
|
||||
"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); "
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"func": "compare_docx_tables",
|
||||
"expected": {
|
||||
"type": "cloud_file",
|
||||
"path": "https://drive.usercontent.google.com/download?id=14JfHsW9GvbhORdtVAtvEbOi00MqEyHfb&export=download&authuser=0&confirm=t&uuid=3dba2459-ac37-4cad-a982-adecd406382a&at=APZUnTVQUqUPq_WacgY2xu4PvAKB:1704181465512",
|
||||
"dest": "Table_Of_Work_Effort_Instructions_Gold.docx"
|
||||
},
|
||||
"result": {
|
||||
"type": "vm_file",
|
||||
"path": "C:\\Users\\chenj\\Table_Of_Work_Effort_Instructions.docx",
|
||||
"dest": "Table_Of_Work_Effort_Instructions.docx"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": "6f81754e-285d-4ce0-b59e-af7edb02d108",
|
||||
"snapshot": "libreoffice_writer",
|
||||
"snapshot": "word",
|
||||
"instruction": "A certain railway company in Hong Kong uses a signaling system to keep track of trains in its railway system. Each line in the docx file represents a train calling at a station from 0600 to 1200 on 2022-09-22, and has the following format: time_HH:MM:SS, train_id, station_id, platform_no.. I want to remove duplicated train ids in order to know how many different trains are running from 0600 to 1200. Could you help me on this? I am doing it manually and it is very inefficient.",
|
||||
"source": "https://superuser.com/questions/789473/remove-duplicate-lines-in-libreoffice-openoffice-writer",
|
||||
"config": [
|
||||
@@ -24,14 +24,14 @@
|
||||
],
|
||||
"trajectory": "trajectories/",
|
||||
"related_apps": [
|
||||
"libreoffice_writer"
|
||||
"word"
|
||||
],
|
||||
"evaluator": {
|
||||
"postconfig": [
|
||||
{
|
||||
"type": "activate_window",
|
||||
"parameters": {
|
||||
"window_name": "HK_train_record.docx - LibreOffice Writer",
|
||||
"window_name": "HK_train_record - Word",
|
||||
"strict": true
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
{
|
||||
"id": "72b810ef-4156-4d09-8f08-a0cf57e7cefe",
|
||||
"snapshot": "libreoffice_writer",
|
||||
"instruction": "I am peer-reviewing my friend's course outline. I think the last paragraph is redundant so I want to add strike-through on words in the last paragraph. Can you do this for me?",
|
||||
"source": "https://superuser.com/questions/657792/libreoffice-writer-how-to-apply-strikethrough-text-formatting?rq=1",
|
||||
"config": [
|
||||
{
|
||||
"type": "download",
|
||||
"parameters": {
|
||||
"files": [
|
||||
{
|
||||
"url": "https://drive.google.com/uc?id=1Uqgr9Y_kjoMoDoUwt80hv1EtFaisyztU&export=download",
|
||||
"path": "C:\\Users\\chenj\\GEOG2169_Course_Outline_2022-23.docx"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "open",
|
||||
"parameters": {
|
||||
"path": "C:\\Users\\chenj\\GEOG2169_Course_Outline_2022-23.docx"
|
||||
}
|
||||
}
|
||||
],
|
||||
"trajectory": "trajectories/",
|
||||
"related_apps": [
|
||||
"libreoffice_writer"
|
||||
],
|
||||
"evaluator": {
|
||||
"postconfig": [
|
||||
{
|
||||
"type": "activate_window",
|
||||
"parameters": {
|
||||
"window_name": "GEOG2169_Course_Outline_2022-23.docx - LibreOffice Writer",
|
||||
"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); "
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"func": "evaluate_strike_through_last_paragraph",
|
||||
"expected": {
|
||||
"type": "cloud_file",
|
||||
"path": "https://drive.google.com/uc?id=1IpAnQRYo1whrnzIGyo8UldZf4Tli-yVT&export=download",
|
||||
"dest": "GEOG2169_Course_Outline_2022-23_Gold.docx"
|
||||
},
|
||||
"result": {
|
||||
"type": "vm_file",
|
||||
"path": "C:\\Users\\chenj\\GEOG2169_Course_Outline_2022-23.docx",
|
||||
"dest": "GEOG2169_Course_Outline_2022-23.docx"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "b21acd93-60fd-4127-8a43-2f5178f4a830",
|
||||
"snapshot": "libreoffice_writer",
|
||||
"instruction": "I have been practicing professional writing lately. Now I am writing essay which requires one paragraph each for introduction, body and conclusion with single-space for introduction, double-space for body then one-and-a-half-space for conclusion. The font size of this essay is 12. Could you help me on this?",
|
||||
"snapshot": "word",
|
||||
"instruction": "I have been practicing professional writing lately. Now I am writing essay which requires one paragraph each for introduction, body and conclusion with single-space for introduction, double-space for body then one-and-a-half-space for conclusion. Could you help me on this?",
|
||||
"source": "https://superuser.com/questions/1097199/how-can-i-double-space-a-document-in-libreoffice?rq=1",
|
||||
"config": [
|
||||
{
|
||||
@@ -24,14 +24,14 @@
|
||||
],
|
||||
"trajectory": "trajectories/",
|
||||
"related_apps": [
|
||||
"libreoffice_writer"
|
||||
"word"
|
||||
],
|
||||
"evaluator": {
|
||||
"postconfig": [
|
||||
{
|
||||
"type": "activate_window",
|
||||
"parameters": {
|
||||
"window_name": "CCHU9045_Course_Outline_2019-20.docx - LibreOffice Writer",
|
||||
"window_name": "CCHU9045_Course_Outline_2019-20 - Word",
|
||||
"strict": true
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": "e528b65e-1107-4b8c-8988-490e4fece599",
|
||||
"snapshot": "libreoffice_writer",
|
||||
"snapshot": "word",
|
||||
"instruction": "Capitalize the first letter of all words.",
|
||||
"source": "https://www.youtube.com/watch?v=l25Evu4ohKg",
|
||||
"config": [
|
||||
@@ -9,7 +9,7 @@
|
||||
"parameters": {
|
||||
"files": [
|
||||
{
|
||||
"url": "https://drive.usercontent.google.com/download?id=181hyG_NZUJaUp7kUdeFoUpNGpOcjzYFV&export=download&authuser=0&confirm=t&uuid=fdb8aee4-ea1f-43c1-bc66-9d44099512e1&at=APZUnTVUrypBeVnTfkJsriv7S2GO:1704969486759",
|
||||
"url": "https://drive.usercontent.google.com/download?id=1rcwueBf1TtBJu6NftUpzqFDVRSZzRCGT&export=download&authuser=0&confirm=t&uuid=a71c0649-c1b5-468a-8bad-aa59b11b510c&at=APZUnTVQ0F2KgX7sa-DqAXDhQ3Vu:1710854515082",
|
||||
"path": "C:\\Users\\chenj\\Geography_And_Magical_Realism.docx"
|
||||
}
|
||||
]
|
||||
@@ -24,14 +24,14 @@
|
||||
],
|
||||
"trajectory": "trajectories/",
|
||||
"related_apps": [
|
||||
"libreoffice_writer"
|
||||
"word"
|
||||
],
|
||||
"evaluator": {
|
||||
"postconfig": [
|
||||
{
|
||||
"type": "activate_window",
|
||||
"parameters": {
|
||||
"window_name": "Geography_And_Magical_Realism.docx - LibreOffice Writer",
|
||||
"window_name": "Geography_And_Magical_Realism - Word",
|
||||
"strict": true
|
||||
}
|
||||
},
|
||||
@@ -47,7 +47,7 @@
|
||||
"command": [
|
||||
"python",
|
||||
"-c",
|
||||
"import pyautogui; import time; pyautogui.hotkey(\"ctrl\", \"s\"); time.sleep(0.5); pyautogui.press(\"enter\");"
|
||||
"import pyautogui; import time; pyautogui.hotkey(\"ctrl\", \"s\"); time.sleep(0.5);"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -55,7 +55,7 @@
|
||||
"func": "compare_docx_files",
|
||||
"expected": {
|
||||
"type": "cloud_file",
|
||||
"path": "https://drive.usercontent.google.com/download?id=1qwoJMuMhLxWwONRLmxwMdUuVIFBAhhNT&export=download&authuser=0&confirm=t&uuid=8fa4d503-ec55-419f-ac90-f5915a5f67b5&at=APZUnTVEntT4oMiEfOuWcUKaInBs:1704969347952",
|
||||
"path": "https://drive.usercontent.google.com/download?id=1QM2Ql81_Rex-qa7xTjUvikSb6OGtc4JC&export=download&authuser=0&confirm=t&uuid=6d24454d-3526-4694-9bf6-adc6bc0afd78&at=APZUnTWptHSOEAum1ZUXQQYED2Lb:1710855675026",
|
||||
"dest": "Geography_And_Magical_Realism_Gold.docx"
|
||||
},
|
||||
"result": {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": "ecc2413d-8a48-416e-a3a2-d30106ca36cb",
|
||||
"snapshot": "libreoffice_writer",
|
||||
"snapshot": "word",
|
||||
"instruction": "Hey, can you throw in a blank page right after this one?",
|
||||
"source": "https://www.quora.com/How-can-I-insert-a-blank-page-on-libreoffice",
|
||||
"config": [
|
||||
@@ -24,14 +24,14 @@
|
||||
],
|
||||
"trajectory": "trajectories/",
|
||||
"related_apps": [
|
||||
"libreoffice_writer"
|
||||
"word"
|
||||
],
|
||||
"evaluator": {
|
||||
"postconfig": [
|
||||
{
|
||||
"type": "activate_window",
|
||||
"parameters": {
|
||||
"window_name": "Sample_Statutory_Declaration.docx - LibreOffice Writer",
|
||||
"window_name": "Sample_Statutory_Declaration - Word",
|
||||
"strict": true
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user