ver Jan22nd
updated all the existing calc configs
This commit is contained in:
@@ -26,6 +26,8 @@ libreoffice --convert-to "csv:Text - txt - csv (StarCalc):44,34,UTF8,,,,false,tr
|
||||
|
||||
This command will generate `abc-Sheet1.csv` under `/home/user`. The last `1` in the conversion options indicates the sheet number (starting from 1) to export. Detailed usage should be referred to at [CSV Filter Options](https://help.libreoffice.org/latest/ro/text/shared/guide/csv_params.html).
|
||||
|
||||
Refer to `libreoffice_calc/21df9241-f8d7-4509-b7f1-37e501a823f7.json` for an example.
|
||||
|
||||
## Chrome
|
||||
|
||||
### Starting Chrome with Remote Debugging for Python
|
||||
|
||||
@@ -247,17 +247,22 @@ def compare_table(result: str, expected: str, **options) -> float:
|
||||
raise NotImplementedError("Unimplemented sheet check: {:}".format(r["type"]))
|
||||
|
||||
passes = passes and metric
|
||||
if not passes:
|
||||
break
|
||||
|
||||
return float(passes)
|
||||
# }}} function compare_table #
|
||||
|
||||
if __name__ == '__main__':
|
||||
path1 = "../../任务数据/LibreOffice Calc/Represent_in_millions_billions.xlsx"
|
||||
path2 = "../../任务数据/LibreOffice Calc/Represent_in_millions_billions_gold.xlsx"
|
||||
rules = [ { "type": "sheet_print"
|
||||
path1 = "../../任务数据/LibreOffice Calc/Freeze_row_column.xlsx"
|
||||
path2 = "../../任务数据/LibreOffice Calc/Freeze_row_column_gold.xlsx"
|
||||
rules = [ { "type": "sheet_data"
|
||||
, "sheet_idx0": 0
|
||||
, "sheet_idx1": "EI0"
|
||||
}
|
||||
, { "type": "freeze"
|
||||
, "sheet_idx0": 0
|
||||
, "sheet_idx1": "EI0"
|
||||
, "ignore_case": "true"
|
||||
}
|
||||
]
|
||||
print( compare_table( path1, path2
|
||||
|
||||
Reference in New Issue
Block a user