Libraryless. Click here for Pure Java version (3799L/25K).
1 | svoid ocr_unpackGlyphTeachLogToScreenClipsDir() {
|
2 | for (S s : scanLog(glyphTeachLog())) {
|
3 | s = dropLeadingSquareBracketStuff(s); // drop date |
4 | S md5 = dropPrefixOrNull("Image ", beforeColon(s); // image md5
|
5 | File imgFile = newFile(screenClipsDir(), md5 + ".png"); |
6 | if (!imgFile.exists()) continue with print("Image not found, skipping: " + imgFile);
|
7 | saveTextFileIfDifferentVerbose(replaceExtension(imgFile, ".line"), afterColon(s)); |
8 | } |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1026084 |
| Snippet name: | ocr_unpackGlyphTeachLogToScreenClipsDir |
| Eternal ID of this version: | #1026084/4 |
| Text MD5: | 5b8cc7f883494cdad7cadb7a1fbe81c7 |
| Transpilation MD5: | 29200e2ef7dbdcec817cb36f8a50d125 |
| Author: | stefan |
| Category: | void |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-11-19 23:34:02 |
| Source code size: | 463 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 382 / 526 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |