forked from LiveCarta/BookConverter
92 lines
2.6 KiB
JSON
92 lines
2.6 KiB
JSON
[
|
|
{
|
|
"preset_name": "decomposer",
|
|
"rules": [
|
|
{
|
|
"tags": ["^div$"],
|
|
"condition": {
|
|
"parent_tags": null,
|
|
"child_tags": null,
|
|
"attrs": [
|
|
{
|
|
"name": "title",
|
|
"value": "footer"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"preset_name": "unwrapper",
|
|
"rules": [
|
|
{
|
|
"tags": ["^span$"],
|
|
"condition": {
|
|
"parent_tags": ":is(h1, h2, h3, h4, h5, h6, h7, h8, h9)",
|
|
"child_tags": null,
|
|
"attrs": [
|
|
{
|
|
"name": "style",
|
|
"value": "(^background: #[\\da-fA-F]{6}$)|(^letter-spacing: -?[\\d.]+pt$)"
|
|
},
|
|
{
|
|
"name": "lang",
|
|
"value": "^ru-RU$"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"tags": ["^font$"],
|
|
"condition": {
|
|
"parent_tags": null,
|
|
"child_tags": null,
|
|
"attrs": [
|
|
{
|
|
"name": "face",
|
|
"value": "^Times New Roman[\\w, ]+$"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"tags": ["^p$"],
|
|
"condition": {
|
|
"parent_tags": "li",
|
|
"child_tags": null,
|
|
"attrs": null
|
|
}
|
|
},
|
|
{
|
|
"tags": ["^a$"],
|
|
"condition": {
|
|
"parent_tags": null,
|
|
"child_tags": null,
|
|
"attrs": [
|
|
{
|
|
"name": "name",
|
|
"value": "_GoBack"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"tags": ["^u$"],
|
|
"condition": {
|
|
"parent_tags": "a",
|
|
"child_tags": "a",
|
|
"attrs": null
|
|
}
|
|
},
|
|
{
|
|
"tags": ["^b$"],
|
|
"condition": {
|
|
"parent_tags": ":is(h1, h2, h3, h4, h5, h6, h7, h8, h9)",
|
|
"child_tags": null,
|
|
"attrs": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |