Skip to content
Permalink
Browse files

Version 3.3

  • Loading branch information...
bengarrett committed Jun 25, 2019
1 parent da6ca19 commit c2af9f72f6785222667bf1009a9897adb9ece374
Showing with 6,621 additions and 10,540 deletions.
  1. +33 −31 .eslintrc.js
  2. +3 −3 .gitattributes
  3. +0 −28 .npmignore
  4. +0 −71 .vscode/cSpell.json
  5. +17 −4 .vscode/settings.json
  6. +29 −0 .vscode/spellright.dict
  7. +9 −10 README.md
  8. +2 −4 css/layout.css
  9. +30 −0 css/material-icons.css
  10. +7 −17 css/modern-normalize.css
  11. +1 −1 css/options_chrome.css
  12. +1 −1 css/options_firefox.css
  13. +23 −5 css/retrotxt.css
  14. +1 −1 css/text_colors_pcboard.css
  15. +1 −1 css/text_colors_vga-ice.css
  16. +2 −4 css/text_ecma_48.css
  17. +1 −1 css/welcome.css
  18. +25 −4 docs/changes.md
  19. +16 −12 docs/index.md
  20. +33 −0 docs/limitations.md
  21. +33 −21 docs/menus.md
  22. +2 −3 docs/nginx.md
  23. +49 −49 docs/options.md
  24. +21 −17 docs/other_projects.md
  25. +3 −3 docs/privacy.md
  26. +18 −37 docs/qa.md
  27. +12 −7 docs/source_code.md
  28. +12 −11 docs/technical.md
  29. BIN fonts/woff2/MaterialIcons-Regular.woff2
  30. BIN fonts/woff2/unscii-16.ttf
  31. BIN fonts/woff2/unscii-16.woff
  32. BIN fonts/woff2/unscii-16.woff2
  33. BIN fonts/woff2/unscii-8.ttf
  34. BIN fonts/woff2/unscii-8.woff
  35. BIN fonts/woff2/unscii-8.woff2
  36. +16 −6 html/options_chrome.html
  37. +10 −3 html/options_firefox.html
  38. +7 −5 html/welcome.html
  39. +5 −3 manifest.json
  40. +5 −3 manifest_chrome.json
  41. +6 −3 manifest_firefox.json
  42. +12 −9 package.json
  43. +107 −32 scripts/eventpage.js
  44. +104 −16 scripts/functions.js
  45. +12 −13 scripts/options.js
  46. +2,031 −1,346 scripts/parse_ansi.js
  47. +21 −21 scripts/parse_dos.js
  48. +241 −71 scripts/retrotxt.js
  49. +1 −1 scripts/welcome.js
  50. +2 −0 test/example_files/__test.txt
  51. 0 test/example_files/{ibm-aix_term.txt → aix_term.txt}
  52. 0 test/example_files/ecma48-blank.ans
  53. +40 −0 test/example_files/ecma48-cursor_position.ans
  54. +41 −0 test/example_files/ecma48-cursor_positionF.ans
  55. +8 −0 test/example_files/ecma48-hvp.ans
  56. 0 test/example_files/{ecma-48-rgb.txt → ecma48-rgb.txt}
  57. BIN test/example_files/{ecma-48.txt → ecma48.txt}
  58. +30 −0 test/example_files/msdos-setmodes.ans
  59. +23 −20 test/index.html
  60. +0 −436 test/qunit-2.4.0.css
  61. +0 −5,679 test/qunit-2.4.0.js
  62. +0 −11 test/test_node.js
  63. +300 −0 test/tests-eventpage.js
  64. +645 −0 test/tests-functions.js
  65. +524 −0 test/tests-parse_ansi-sequences.js
  66. +1,227 −0 test/tests-parse_ansi.js
  67. +608 −0 test/tests-parse_dos.js
  68. +197 −0 test/tests-retrotxt.js
  69. +0 −2,511 test/tests_browser.js
  70. +14 −5 web-ext-config.js
@@ -13,37 +13,39 @@ module.exports = {
"no-console": ["off"],
quotes: ["error", "backtick"]
},
// set to false to make global vars read-only
// To make global variables, read-only.
globals: {
BBS: false,
BrowserEncodings: false,
BuildEcma48: false,
BusySpinner: false,
CharacterSet: false,
Characters: false,
CheckArguments: false,
CheckError: false,
CheckRange: false,
Configuration: false,
Contrast: false,
CreateLink: false,
DisplayAlert: false,
DOSText: false,
FindControlSequences: false,
FindEngine: false,
FontFamily: false,
Guess: false,
HumaniseCamelCase: false,
HumaniseFS: false,
HardwarePalette: false,
ParseToChildren: false,
QUnit: false,
OptionsReset: false,
RetroTxt: false,
SAUCE: false,
StringToBool: false,
ToggleScanlines: false,
ToggleTextEffect: false,
Transcode: false
BBS: "readonly",
Controls: "readonly",
BrowserEncodings: "readonly",
BusySpinner: "readonly",
CharacterSet: "readonly",
Characters: "readonly",
CheckArguments: "readonly",
CheckError: "readonly",
CheckRange: "readonly",
Configuration: "readonly",
Contrast: "readonly",
CreateLink: "readonly",
DisplayAlert: "readonly",
DisplayEncodingAlert: "readonly",
DOSText: "readonly",
FindControlSequences: "readonly",
FindDarkScheme: "readonly",
FindEngine: "readonly",
FontFamily: "readonly",
Guess: "readonly",
HumaniseCamelCase: "readonly",
HumaniseFS: "readonly",
HardwarePalette: "readonly",
ParseToChildren: "readonly",
QUnit: "readonly",
OptionsReset: "readonly",
RetroTxt: "readonly",
SAUCE: "readonly",
StringToBool: "readonly",
ToggleScanlines: "readonly",
ToggleTextEffect: "readonly",
Transcode: "readonly"
}
}
@@ -1,10 +1,10 @@
# Auto detect text files and perform LF normalization
# Auto-detect text files and perform LF normalization.
* text=auto

# Custom for Visual Studio
# Custom for Visual Studio.
*.cs diff=csharp

# Standard to msysgit
# Standard to msysgit.
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain

This file was deleted.

This file was deleted.

@@ -2,22 +2,21 @@
{
// web-ext
"files.autoSave": "off",
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
// White space and formatting
"editor.insertSpaces": true,
"editor.renderWhitespace": "boundary",
"editor.tabSize": 2,
"editor.wordWrapColumn": 132,
"editor.wordWrap": "wordWrapColumn",
// ESLint (Javascript)
"eslint.alwaysShowStatus": true,
"eslint.autoFixOnSave": true,
"eslint.validate": ["javascript", "html"],
"prettier.eslintIntegration": true,
// NPM
"npm.autoDetect": "off",
"npm.enableScriptExplorer": true,
// Unused or conflicting features
"html.suggest.angular1": false,
"html.suggest.ionic": false,
"javascript.format.enable": false,
"typescript.format.enable": false,
// Document This
@@ -29,5 +28,19 @@
"css.lint.important": "warning",
"css.lint.importStatement": "warning",
"css.lint.universalSelector": "warning",
"css.lint.zeroUnits": "warning"
"css.lint.zeroUnits": "warning",
// Spell Right
"spellright.language": [
"en"
],
"spellright.documentTypes": [
"markdown",
"latex",
"plaintext",
"javascript",
"html",
"css",
"yaml"
],
"spellright.notificationClass": "hint"
}
@@ -0,0 +1,29 @@
Blocktronics
xterm
Colors
colors
Oldschool
mona
atomiks
Verent
Korp
param
boolean
href
css
jis
dom
iso
fallthrough
eslint
const
concat
Color
qunit
aixterm
typeof
json
Synchronet
Telegard
i
px
@@ -5,7 +5,7 @@ Turn many pieces of ANSI text art and ASCII/NFO plain text into HTML5 **text** u
Available for installation from both the [Chrome web store](https://chrome.google.com/webstore/detail/retrotxt/gkjkgilckngllkopkogcaiojfajanahn) and [Firefox Add-ons](https://addons.mozilla.org/en-US/firefox/addon/retrotxt/).

- View ANSI, ASCII, NFO, Shift JIS, PCBoard, Wildcat text art as HTML
- View server and devop logs formatted in coloured text with modern fonts
- View server and dev-op logs formatted in coloured text with modern fonts
- RGB 16.7 million, xterm 256 and IBM VGA 16 colour support
- Swappable ANSI palettes, xterm, VGA, CGA, monochrome and switchable iCE Colors
- Swappable ASCII & NFO colour themes, DOS, Windows, Amiga, C-64, Apple II, Atari ST
@@ -15,23 +15,21 @@ Available for installation from both the [Chrome web store](https://chrome.googl
- Multiple IBM PC font support such as VGA, PS/2, EGA, CGA, MDA plus variants and more
- Various Amiga fonts plus Mona, Commodore PETSCII, Atari ATASCII, Atari ST and Apple II

Limitations

- A lot of [Bulletin Board System](https://spectrum.ieee.org/tech-history/cyberspace/social-medias-dialup-ancestor-the-bulletin-board-system) era ANSI art that relied on an 80x25 fixed terminal with cursor positioning to create motion and animations do not convert

![RetroTxt showcase](/docs/assets/zii-rtxt-ad.png)

## Documentation

### [Read](https://github.com/bengarrett/RetroTxt/blob/master/docs/index.md)
### [Read](/docs/index.md)

### [What is new?](/docs/changes.md)

#### [What is new?](https://github.com/bengarrett/RetroTxt/blob/master/docs/changes.md)
### [Limitations](/docs/limitations.md)

## Install

### [Chrome](https://chrome.google.com/webstore/detail/retrotxt/gkjkgilckngllkopkogcaiojfajanahn) · [Firefox](https://addons.mozilla.org/en-US/firefox/addon/retrotxt/) · [Brave](https://chrome.google.com/webstore/detail/retrotxt/gkjkgilckngllkopkogcaiojfajanahn) · [Edge (Chromium)](https://chrome.google.com/webstore/detail/retrotxt/gkjkgilckngllkopkogcaiojfajanahn)

#### [Or use the source code](https://github.com/bengarrett/RetroTxt/blob/master/docs/source_code.md)
#### [Or use the source code](/docs/source_code.md)

### Requirements

@@ -57,13 +55,13 @@ Once configured RetroTxt will run on any text or ANSI art file observed in a per
![RetroTxt toolbar button in Chrome](/docs/assets/retrotxt_toolbar_button_chrome.png)

Elsewhere there are thousands of text files hosted at [textfiles.com](https://textfiles.com/directory.html) or the [Project
Gutenberg](https://www.gutenberg.org/catalog/) _plain text_ books. Or download one of the amazing text art packs created by
Gutenberg](https://www.gutenberg.org/catalog/) _plain text_ books. Or download one of the fantastic text art packs created by
[Blocktronics](http://blocktronics.org/artpacks/), found at [textmod.es](https://pc.textmod.es/) or [16 colors](https://16colo.rs) and use the `file:///` protocol
to browse and view the text art files saved onto your hard drive.

### Permissions

Chrome requires **Allow access to file URLs** selected if you wish to use RetroTxt with text files stored on your local computer.
Chrome, Brave and Edge require **Allow access to file URLs** selected if you wish to use RetroTxt with text files stored on your local computer.

## Privacy

@@ -95,6 +93,7 @@ RetroTxt ANSI logo Zeus II [Twitter @Zeus_II](https://twitter.com/Zeus_II)
- IBM PC fonts [_The Ultimate Oldschool PC Font Pack_](https://int10h.org/oldschool-pc-fonts/) by Viler
- IBM Plex [_Plex Mono Regular_](https://github.com/IBM/plex) by IBM Corp.
- Mona Shift JIS [_mona_](http://monafont.sourceforge.net/index-e.html) public domain
- Unscii [_UNSCII_](hhttp://pelulamu.net/unscii/) by Viznut

Options icons by [Google Material Design](https://material.google.com/)

@@ -18,13 +18,11 @@ font color value is the invert of the background colour
*/

header {
/* ver 2.2: the filter styles has been moved to dom.setColor() */
/* version 2.2: the filter styles has been moved to dom.setColor() */
font-family: vgalcd;
font-size: 1.5em;
line-height: 1.6em;
/* csslint ignore:start */
mix-blend-mode: difference;
/* csslint ignore:end */
order: 1;
position: sticky;
text-align: left;
@@ -57,7 +55,7 @@ main i {
pre {
border: 0 dotted rgba(0, 128, 0, 1);
padding: 0;
/* for text that lack linebreaks this wraps text to the tab width */
/* for text that lack line breaks this wraps text to the tab width */
overflow-wrap: break-word;
white-space: pre-wrap;
}
@@ -0,0 +1,30 @@
@font-face {
font-family: "Material Icons";
font-style: normal;
font-weight: 400;
src: local("Material Icons"), local("MaterialIcons-Regular"),
url(../fonts/woff2/MaterialIcons-Regular.woff2) format("woff2");
font-display: swap;
}

.material-icons {
font-family: "Material Icons";
font-weight: normal;
font-style: normal;
font-size: 24px; /* Preferred icon size */
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;

/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */
text-rendering: optimizeLegibility;

/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale;
}

0 comments on commit c2af9f7

Please sign in to comment.
You can’t perform that action at this time.