Repository navigation
feat(profile): add typography normalization, multi-codepage switching, and profile presets - #172
Merged
Merged
Conversation
…, and profile presets
Contributor
|
👋 Thanks for opening this PR, @adcondev! Here's what will happen next:
Please make sure:
|
Contributor
|
This PR exceeds the recommended size of 1000 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
Contributor
⚡ Benchmark Results📈 Performance Comparison📊 Click to expand detailed resultsCurrent Branch ResultsBase Branch Results💡 Note: Use 🎯 Summary
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary (Area 4 of 6)
pkg/profile/magic_encode.go,pkg/profile/escpos_encoding.go):EncodeBytesSafe(text string) ([]byte, error)supporting mid-stringESC t n(0x1B 0x74 n) automatic code page switching (AutoSwitchCodePage,FallbackCodePages) and non-fatal'?'replacement (or opt-inStrictEncoding: true).ParseCodeTableandconstants.ValidCodeTablesto all 25+ supported ESC/POS code tables (PC437,PC850,PC852,PC855,PC858,PC860,PC862,PC863,PC865,PC866,WPC1250–1258,ISO8859-2/7/15,Katakana,Hiragana,ShiftJIS).pkg/profile/profile_factory.go):CreateEpsonTMT20III,CreateEpsonTMT88VI,CreateStarTSP100,CreateBixolonSRP350III,CreateXprinterXP58,CreateXprinterXP80, andProfileFromModel(model string).pkg/document/executor/handler_executor.go,cmd/poster/parsing.go,pkg/service/printer_service.go):384dots) whenPaperWidth: 0is passed with a 58mm model preset.service.Printer.PrinttoEncodeBytesSafe.