├── .gitignore ├── CODE_OF_CONDUCT.md ├── LICENSE.txt ├── NOTICE.txt ├── Package.swift ├── README.md ├── Sources └── Figlet │ ├── Figlet.swift │ ├── FigletFile.swift │ ├── Font.swift │ └── standard.flf └── Tests └── FigletTests └── FigletTests.swift /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .build 3 | .swiftpm 4 | Package.resolved 5 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | The code of conduct for this project can be found at https://swift.org/code-of-conduct. 4 | 5 | 6 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | 204 | 205 | ## Runtime Library Exception to the Apache 2.0 License: ## 206 | 207 | 208 | As an exception, if you use this Software to compile your source code and 209 | portions of this Software are embedded into the binary product as a result, 210 | you may redistribute such product without providing attribution as would 211 | otherwise be required by Sections 4(a), 4(b) and 4(d) of the License. 212 | -------------------------------------------------------------------------------- /NOTICE.txt: -------------------------------------------------------------------------------- 1 | 2 | The Swift Project 3 | ==================== 4 | 5 | Please visit the Swift web site for more information: 6 | 7 | * https://github.com/apple/swift 8 | 9 | Copyright (c) 2023 Apple Inc. and the Swift project authors 10 | 11 | The Swift Project licenses this file to you under the Apache License, 12 | version 2.0 (the "License"); you may not use this file except in compliance 13 | with the License. You may obtain a copy of the License at: 14 | 15 | https://www.apache.org/licenses/LICENSE-2.0 16 | 17 | Unless required by applicable law or agreed to in writing, software 18 | distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 19 | WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 20 | License for the specific language governing permissions and limitations 21 | under the License. 22 | 23 | Also, please refer to each LICENSE.txt file, which is located in 24 | the 'license' directory of the distribution file, for the license terms of the 25 | components that this product depends on. 26 | 27 | ------------------------------------------------------------------------------- 28 | 29 | 30 | This product contains a derivation of https://github.com/dfreniche/SwiftFiglet, specifically `SFKFigletFile.swift` and `SFKFont.swift`. 31 | 32 | * LICENSE (MIT License) 33 | * https://github.com/dfreniche/SwiftFiglet/tree/master#license 34 | * HOMEPAGE: 35 | * https://github.com/dfreniche/SwiftFiglet 36 | 37 | --- 38 | 39 | This product contains a font from http://www.figlet.org. 40 | 41 | * HOMEPAGE: 42 | * http://www.figlet.org 43 | -------------------------------------------------------------------------------- /Package.swift: -------------------------------------------------------------------------------- 1 | // swift-tools-version: 5.7 2 | 3 | import PackageDescription 4 | 5 | let package = Package( 6 | name: "swift-figlet", 7 | products: [ 8 | .library( 9 | name: "Figlet", 10 | targets: ["Figlet"] 11 | ), 12 | ], 13 | targets: [ 14 | .target( 15 | name: "Figlet", 16 | resources: [ 17 | .process("standard.flf") 18 | ] 19 | ), 20 | .testTarget( 21 | name: "FigletTests", 22 | dependencies: ["Figlet"] 23 | ), 24 | ] 25 | ) 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Example package 2 | 3 | An example package to be used as part of Swift's getting started guides. 4 | 5 | The package is not intended to be used outside the context of these guides and does not provide complete or production ready functionality. 6 | 7 | This example packages is based on https://github.com/dfreniche/SwiftFiglet/ and uses fonts from http://www.figlet.org 8 | -------------------------------------------------------------------------------- /Sources/Figlet/Figlet.swift: -------------------------------------------------------------------------------- 1 | //===----------------------------------------------------------------------===// 2 | // 3 | // This source file is part of the Swift open source project 4 | // 5 | // Copyright (c) 2023 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See http://swift.org/LICENSE.txt for license information 9 | // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===-------------------------------------------------------------------- 12 | 13 | import Foundation 14 | 15 | public enum Figlet { 16 | public static func say(_ text: String) { 17 | guard let figletFileURL = Bundle.module.url(forResource: "standard", withExtension: "flf") else { 18 | fatalError("invalid figlet font file: missing resource") 19 | } 20 | guard let figletFile = FigletFile.from(url: figletFileURL) else { 21 | fatalError("invalid figlet font file: invalid file") 22 | } 23 | guard let font = Font.from(file: figletFile) else { 24 | fatalError("invalid figlet font file: invalid font") 25 | } 26 | 27 | for line in 0 ..< font.height { 28 | for c in text { 29 | if let fontCharacter = font.characters[c], line < fontCharacter.lines.count { 30 | print(fontCharacter.lines[line], separator: "", terminator: "") 31 | } 32 | } 33 | print("") 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Sources/Figlet/FigletFile.swift: -------------------------------------------------------------------------------- 1 | //===----------------------------------------------------------------------===// 2 | // 3 | // This source file is part of the Swift open source project 4 | // 5 | // Copyright (c) 2023 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See http://swift.org/LICENSE.txt for license information 9 | // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===-------------------------------------------------------------------- 12 | 13 | // This code is taken from https://github.com/dfreniche/SwiftFiglet/, license as follows: 14 | 15 | /* 16 | 17 | MIT - Licence 18 | 19 | Copyright (c) 2020 Diego Freniche 20 | 21 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 22 | 23 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 24 | 25 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | 27 | */ 28 | 29 | import Foundation 30 | 31 | extension Figlet { 32 | public struct FigletFile { 33 | 34 | private enum CRLF: Character { 35 | case WindowsStyle = "\r\n" 36 | case UnixStyle = "\n" 37 | } 38 | 39 | public enum PrintDirection: Int { 40 | case leftToRight = 0 41 | case rightToLeft = 1 42 | } 43 | 44 | /** 45 | Figlet file header 46 | 47 | ``` 48 | From: http://www.jave.de/docs/figfont.txt 49 | 50 | THE HEADER LINE 51 | The header line gives information about the FIGfont. Here is an example 52 | showing the names of all parameters: 53 | flf2a$ 6 5 20 15 3 0 143 229 NOTE: The first five characters in 54 | | | | | | | | | | | the entire file must be "flf2a". 55 | / / | | | | | | | \ 56 | Signature / / | | | | | \ Codetag_Count 57 | Hardblank / / | | | \ Full_Layout* 58 | Height / | | \ Print_Direction 59 | Baseline / \ Comment_Lines 60 | Max_Length Old_Layout* 61 | * The two layout parameters are closely related and fairly complex. 62 | (See "INTERPRETATION OF LAYOUT PARAMETERS".) 63 | ``` 64 | */ 65 | public struct Header { 66 | private static let headerStartSignature = "flf2a" 67 | 68 | public let hardBlank: String 69 | public let height: Int 70 | public let baseline: Int 71 | public let maxLength: Int 72 | public let oldLayout: Int 73 | public let commentLines: Int 74 | public let commentDirection: PrintDirection 75 | public let fullLayout: Int 76 | public let codeTagCount: Int 77 | 78 | 79 | /// Returns a Header from String passed. If can't create it bacause `from` does not follow Figlet header format, returns `nil` 80 | /// - Parameter header: first line from a Figlet font file 81 | public static func createFigletFontHeader(from header: String) -> Header? { 82 | 83 | let headerParts = header.components(separatedBy: " ") 84 | guard 85 | !headerParts.isEmpty, 86 | let signature = headerParts.first, 87 | signature.starts(with: Header.headerStartSignature) 88 | else { return nil } 89 | 90 | // last character in signature (start of header "flf2a$") is the hard blank character, in this case $ 91 | let hardBlank = String(signature.last ?? "$") 92 | 93 | // font height 94 | let fontHeight = Int(headerParts[safe: 1] ?? "0") ?? 0 95 | let baseLine = Int(headerParts[safe: 2] ?? "0") ?? 0 96 | let maxLength = Int(headerParts[safe: 3] ?? "0") ?? 0 97 | let oldLayout = Int(headerParts[safe: 4] ?? "0") ?? 0 98 | let commentLines = Int(headerParts[safe: 5] ?? "0") ?? 0 99 | let commentDirection = PrintDirection(rawValue: Int(headerParts[safe: 6] ?? "0") ?? 0) ?? PrintDirection.leftToRight 100 | let fullLayout = Int(headerParts[safe: 7] ?? "0") ?? 0 101 | let codeTagCount = Int(headerParts[safe: 8] ?? "0") ?? 0 102 | 103 | return Header( 104 | hardBlank: hardBlank, 105 | height: fontHeight, 106 | baseline: baseLine, 107 | maxLength: maxLength, 108 | oldLayout: oldLayout, 109 | commentLines: commentLines, 110 | commentDirection: commentDirection, 111 | fullLayout: fullLayout, 112 | codeTagCount: codeTagCount 113 | ) 114 | } 115 | } 116 | 117 | /// `Header` info for this font, @see `Header` 118 | public let header: Header 119 | public let headerLines: [Substring] 120 | public let lines: [Substring] 121 | 122 | /// Returns line terminator for characters, usually `@` or `#` 123 | public func characterLineTerminator() -> Character { 124 | // line terminator for characters 125 | let terminator: Character = lines[header.commentLines].last ?? "@" 126 | return terminator 127 | } 128 | 129 | /// Loads a Figlet file `.flf` from disc 130 | /// - Parameter file: file name 131 | /// - Returns: a`SFKFigletFile` object containing the file or `nil` if there was an error 132 | public static func from(fileName: String) -> Self? { 133 | let dir = FileManager.default.currentDirectoryPath 134 | let fileURL = URL(fileURLWithPath: dir.appending("/").appending(fileName)) 135 | return Self.from(url: fileURL) 136 | } 137 | 138 | /// Loads a Figlet file `.flf` from disc 139 | /// - Parameter fileURL: URL pointing to the file. 140 | /// - Returns: a`SFKFigletFile` object containing the file or `nil` if there was an error 141 | public static func from(url fileURL: URL) -> Self? { 142 | do { 143 | // opening file with ASCII encoding, Figlet files are ASCII files 144 | let content = try String(contentsOf: fileURL, encoding: .ascii) 145 | return Self.from(content: content) 146 | } catch { 147 | // errors opening file 148 | return nil 149 | } 150 | } 151 | 152 | public static func from(content: String) -> Self? { 153 | // we try to split file in lines using line terminator Unix Style 154 | // omittingEmptySubsequences is `false` to not lose empty lines added 155 | // as vertical spaces 156 | var lines = content.split(separator: CRLF.UnixStyle.rawValue, omittingEmptySubsequences: false) 157 | var finalLines = [Substring]() 158 | for line in lines { 159 | // we try to split each line using Windows line terminator style 160 | // some font files have mixed line endings 161 | let splittedLine = line.split(separator: CRLF.WindowsStyle.rawValue, omittingEmptySubsequences: false) 162 | for sl in splittedLine { 163 | finalLines.append(sl) 164 | } 165 | } 166 | lines = finalLines 167 | 168 | if let header = Header.createFigletFontHeader(from: String(lines.first ?? "")) { 169 | var headerLines = [Substring]() 170 | for i in 0...header.commentLines { 171 | headerLines.append(lines[i]) 172 | } 173 | 174 | // lines describing characters start after: 1 line header + header.commentLines 175 | let characterLines = lines.dropFirst(header.commentLines + 1).map { $0 } 176 | return Self(header: header, headerLines: headerLines, lines: characterLines) 177 | } else { 178 | // can't extract header 179 | return nil 180 | } 181 | } 182 | } 183 | } 184 | 185 | extension Collection where Indices.Iterator.Element == Index { 186 | subscript (safe index: Index) -> Iterator.Element? { 187 | return indices.contains(index) ? self[index] : nil 188 | } 189 | } 190 | -------------------------------------------------------------------------------- /Sources/Figlet/Font.swift: -------------------------------------------------------------------------------- 1 | //===----------------------------------------------------------------------===// 2 | // 3 | // This source file is part of the Swift open source project 4 | // 5 | // Copyright (c) 2023 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See http://swift.org/LICENSE.txt for license information 9 | // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===-------------------------------------------------------------------- 12 | 13 | // This code is take from https://github.com/dfreniche/SwiftFiglet/, license as follows: 14 | 15 | /* 16 | 17 | MIT - Licence 18 | 19 | Copyright (c) 2020 Diego Freniche 20 | 21 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 22 | 23 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 24 | 25 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 26 | 27 | */ 28 | 29 | import Foundation 30 | 31 | extension Figlet { 32 | public struct Font { 33 | /// Loads a Figlet font file and returns a fully loaded, ready to use `SFKFont` object 34 | /// - Parameter url: URL to the font file 35 | static func from(url: URL) -> Self? { 36 | FigletFile.from(url: url).flatMap(Self.from(file:)) 37 | } 38 | 39 | /// Loads a Figlet font file and returns a fully loaded, ready to use `SFKFont` object 40 | /// - Parameter file: font file name path including extension 41 | static func from(fileName: String) -> Self? { 42 | FigletFile.from(fileName: fileName).flatMap(Self.from(file:)) 43 | } 44 | 45 | /// Given a Figlet font file already loaded returns a ready to use `SFKFont` object 46 | static func from(file figletFile: FigletFile) -> Self? { 47 | var height = figletFile.header.height 48 | 49 | var nextASCIIChar = 32 // 32 is Space 50 | 51 | // let separator = figletFile.characterLineTerminator() 52 | 53 | var arrayLines = [String]() 54 | var characters = [Character: Char]() 55 | for line in figletFile.lines { 56 | let fontLine: Substring 57 | 58 | if arrayLines.count < height - 1 { 59 | // remove last @ 60 | fontLine = line.dropLast() 61 | } else { 62 | // remove last @@ 63 | fontLine = line.dropLast().dropLast() 64 | } 65 | arrayLines.append(String(fontLine.replacingOccurrences(of: String(figletFile.header.hardBlank), with: " "))) 66 | 67 | // last line 68 | if arrayLines.count == height { 69 | let char = Char(charLines: arrayLines) 70 | characters[Character(UnicodeScalar(nextASCIIChar) ?? " ")] = char 71 | height = char.height 72 | 73 | nextASCIIChar = nextASCIIChar + 1 74 | arrayLines = [] 75 | } 76 | } 77 | 78 | return Self(figletFile: figletFile, height: height, characters: characters) 79 | } 80 | 81 | private let figletFile: FigletFile 82 | public let height: Int 83 | public let characters: [Character: Char] 84 | 85 | init(figletFile: FigletFile, height: Int, characters: [Character: Char]) { 86 | self.figletFile = figletFile 87 | self.height = height 88 | self.characters = characters 89 | } 90 | } 91 | } 92 | 93 | extension Figlet { 94 | public struct Char { 95 | /// Represents an empty Character 96 | public static let EmptyChar = Self(charLines: []) 97 | 98 | /// height in lines of this Character 99 | public let height: Int 100 | 101 | /// lines, from top to bottom that made up this Character 102 | public let lines: [String] 103 | 104 | public init(charLines: [String]) { 105 | self.lines = charLines 106 | self.height = charLines.count 107 | } 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /Sources/Figlet/standard.flf: -------------------------------------------------------------------------------- 1 | flf2a$ 6 5 16 15 11 0 24463 2 | Standard by Glenn Chappell & Ian Chai 3/93 -- based on Frank's .sig 3 | Includes ISO Latin-1 4 | figlet release 2.1 -- 12 Aug 1994 5 | Modified for figlet 2.2 by John Cowan 6 | to add Latin-{2,3,4,5} support (Unicode U+0100-017F). 7 | Permission is hereby given to modify this font, as long as the 8 | modifier's name is placed on a comment line. 9 | 10 | Modified by Paul Burton 12/96 to include new parameter 11 | supported by FIGlet and FIGWin. May also be slightly modified for better use 12 | of new full-width/kern/smush alternatives, but default output is NOT changed. 13 | $@ 14 | $@ 15 | $@ 16 | $@ 17 | $@ 18 | $@@ 19 | _ @ 20 | | |@ 21 | | |@ 22 | |_|@ 23 | (_)@ 24 | @@ 25 | _ _ @ 26 | ( | )@ 27 | V V @ 28 | $ @ 29 | $ @ 30 | @@ 31 | _ _ @ 32 | _| || |_ @ 33 | |_ .. _|@ 34 | |_ _|@ 35 | |_||_| @ 36 | @@ 37 | _ @ 38 | | | @ 39 | / __)@ 40 | \__ \@ 41 | ( /@ 42 | |_| @@ 43 | _ __@ 44 | (_)/ /@ 45 | / / @ 46 | / /_ @ 47 | /_/(_)@ 48 | @@ 49 | ___ @ 50 | ( _ ) @ 51 | / _ \/\@ 52 | | (_> <@ 53 | \___/\/@ 54 | @@ 55 | _ @ 56 | ( )@ 57 | |/ @ 58 | $ @ 59 | $ @ 60 | @@ 61 | __@ 62 | / /@ 63 | | | @ 64 | | | @ 65 | | | @ 66 | \_\@@ 67 | __ @ 68 | \ \ @ 69 | | |@ 70 | | |@ 71 | | |@ 72 | /_/ @@ 73 | @ 74 | __/\__@ 75 | \ /@ 76 | /_ _\@ 77 | \/ @ 78 | @@ 79 | @ 80 | _ @ 81 | _| |_ @ 82 | |_ _|@ 83 | |_| @ 84 | @@ 85 | @ 86 | @ 87 | @ 88 | _ @ 89 | ( )@ 90 | |/ @@ 91 | @ 92 | @ 93 | _____ @ 94 | |_____|@ 95 | $ @ 96 | @@ 97 | @ 98 | @ 99 | @ 100 | _ @ 101 | (_)@ 102 | @@ 103 | __@ 104 | / /@ 105 | / / @ 106 | / / @ 107 | /_/ @ 108 | @@ 109 | ___ @ 110 | / _ \ @ 111 | | | | |@ 112 | | |_| |@ 113 | \___/ @ 114 | @@ 115 | _ @ 116 | / |@ 117 | | |@ 118 | | |@ 119 | |_|@ 120 | @@ 121 | ____ @ 122 | |___ \ @ 123 | __) |@ 124 | / __/ @ 125 | |_____|@ 126 | @@ 127 | _____ @ 128 | |___ / @ 129 | |_ \ @ 130 | ___) |@ 131 | |____/ @ 132 | @@ 133 | _ _ @ 134 | | || | @ 135 | | || |_ @ 136 | |__ _|@ 137 | |_| @ 138 | @@ 139 | ____ @ 140 | | ___| @ 141 | |___ \ @ 142 | ___) |@ 143 | |____/ @ 144 | @@ 145 | __ @ 146 | / /_ @ 147 | | '_ \ @ 148 | | (_) |@ 149 | \___/ @ 150 | @@ 151 | _____ @ 152 | |___ |@ 153 | / / @ 154 | / / @ 155 | /_/ @ 156 | @@ 157 | ___ @ 158 | ( _ ) @ 159 | / _ \ @ 160 | | (_) |@ 161 | \___/ @ 162 | @@ 163 | ___ @ 164 | / _ \ @ 165 | | (_) |@ 166 | \__, |@ 167 | /_/ @ 168 | @@ 169 | @ 170 | _ @ 171 | (_)@ 172 | _ @ 173 | (_)@ 174 | @@ 175 | @ 176 | _ @ 177 | (_)@ 178 | _ @ 179 | ( )@ 180 | |/ @@ 181 | __@ 182 | / /@ 183 | / / @ 184 | \ \ @ 185 | \_\@ 186 | @@ 187 | @ 188 | _____ @ 189 | |_____|@ 190 | |_____|@ 191 | $ @ 192 | @@ 193 | __ @ 194 | \ \ @ 195 | \ \@ 196 | / /@ 197 | /_/ @ 198 | @@ 199 | ___ @ 200 | |__ \@ 201 | / /@ 202 | |_| @ 203 | (_) @ 204 | @@ 205 | ____ @ 206 | / __ \ @ 207 | / / _` |@ 208 | | | (_| |@ 209 | \ \__,_|@ 210 | \____/ @@ 211 | _ @ 212 | / \ @ 213 | / _ \ @ 214 | / ___ \ @ 215 | /_/ \_\@ 216 | @@ 217 | ____ @ 218 | | __ ) @ 219 | | _ \ @ 220 | | |_) |@ 221 | |____/ @ 222 | @@ 223 | ____ @ 224 | / ___|@ 225 | | | @ 226 | | |___ @ 227 | \____|@ 228 | @@ 229 | ____ @ 230 | | _ \ @ 231 | | | | |@ 232 | | |_| |@ 233 | |____/ @ 234 | @@ 235 | _____ @ 236 | | ____|@ 237 | | _| @ 238 | | |___ @ 239 | |_____|@ 240 | @@ 241 | _____ @ 242 | | ___|@ 243 | | |_ @ 244 | | _| @ 245 | |_| @ 246 | @@ 247 | ____ @ 248 | / ___|@ 249 | | | _ @ 250 | | |_| |@ 251 | \____|@ 252 | @@ 253 | _ _ @ 254 | | | | |@ 255 | | |_| |@ 256 | | _ |@ 257 | |_| |_|@ 258 | @@ 259 | ___ @ 260 | |_ _|@ 261 | | | @ 262 | | | @ 263 | |___|@ 264 | @@ 265 | _ @ 266 | | |@ 267 | _ | |@ 268 | | |_| |@ 269 | \___/ @ 270 | @@ 271 | _ __@ 272 | | |/ /@ 273 | | ' / @ 274 | | . \ @ 275 | |_|\_\@ 276 | @@ 277 | _ @ 278 | | | @ 279 | | | @ 280 | | |___ @ 281 | |_____|@ 282 | @@ 283 | __ __ @ 284 | | \/ |@ 285 | | |\/| |@ 286 | | | | |@ 287 | |_| |_|@ 288 | @@ 289 | _ _ @ 290 | | \ | |@ 291 | | \| |@ 292 | | |\ |@ 293 | |_| \_|@ 294 | @@ 295 | ___ @ 296 | / _ \ @ 297 | | | | |@ 298 | | |_| |@ 299 | \___/ @ 300 | @@ 301 | ____ @ 302 | | _ \ @ 303 | | |_) |@ 304 | | __/ @ 305 | |_| @ 306 | @@ 307 | ___ @ 308 | / _ \ @ 309 | | | | |@ 310 | | |_| |@ 311 | \__\_\@ 312 | @@ 313 | ____ @ 314 | | _ \ @ 315 | | |_) |@ 316 | | _ < @ 317 | |_| \_\@ 318 | @@ 319 | ____ @ 320 | / ___| @ 321 | \___ \ @ 322 | ___) |@ 323 | |____/ @ 324 | @@ 325 | _____ @ 326 | |_ _|@ 327 | | | @ 328 | | | @ 329 | |_| @ 330 | @@ 331 | _ _ @ 332 | | | | |@ 333 | | | | |@ 334 | | |_| |@ 335 | \___/ @ 336 | @@ 337 | __ __@ 338 | \ \ / /@ 339 | \ \ / / @ 340 | \ V / @ 341 | \_/ @ 342 | @@ 343 | __ __@ 344 | \ \ / /@ 345 | \ \ /\ / / @ 346 | \ V V / @ 347 | \_/\_/ @ 348 | @@ 349 | __ __@ 350 | \ \/ /@ 351 | \ / @ 352 | / \ @ 353 | /_/\_\@ 354 | @@ 355 | __ __@ 356 | \ \ / /@ 357 | \ V / @ 358 | | | @ 359 | |_| @ 360 | @@ 361 | _____@ 362 | |__ /@ 363 | / / @ 364 | / /_ @ 365 | /____|@ 366 | @@ 367 | __ @ 368 | | _|@ 369 | | | @ 370 | | | @ 371 | | | @ 372 | |__|@@ 373 | __ @ 374 | \ \ @ 375 | \ \ @ 376 | \ \ @ 377 | \_\@ 378 | @@ 379 | __ @ 380 | |_ |@ 381 | | |@ 382 | | |@ 383 | | |@ 384 | |__|@@ 385 | /\ @ 386 | |/\|@ 387 | $ @ 388 | $ @ 389 | $ @ 390 | @@ 391 | @ 392 | @ 393 | @ 394 | @ 395 | _____ @ 396 | |_____|@@ 397 | _ @ 398 | ( )@ 399 | \|@ 400 | $ @ 401 | $ @ 402 | @@ 403 | @ 404 | __ _ @ 405 | / _` |@ 406 | | (_| |@ 407 | \__,_|@ 408 | @@ 409 | _ @ 410 | | |__ @ 411 | | '_ \ @ 412 | | |_) |@ 413 | |_.__/ @ 414 | @@ 415 | @ 416 | ___ @ 417 | / __|@ 418 | | (__ @ 419 | \___|@ 420 | @@ 421 | _ @ 422 | __| |@ 423 | / _` |@ 424 | | (_| |@ 425 | \__,_|@ 426 | @@ 427 | @ 428 | ___ @ 429 | / _ \@ 430 | | __/@ 431 | \___|@ 432 | @@ 433 | __ @ 434 | / _|@ 435 | | |_ @ 436 | | _|@ 437 | |_| @ 438 | @@ 439 | @ 440 | __ _ @ 441 | / _` |@ 442 | | (_| |@ 443 | \__, |@ 444 | |___/ @@ 445 | _ @ 446 | | |__ @ 447 | | '_ \ @ 448 | | | | |@ 449 | |_| |_|@ 450 | @@ 451 | _ @ 452 | (_)@ 453 | | |@ 454 | | |@ 455 | |_|@ 456 | @@ 457 | _ @ 458 | (_)@ 459 | | |@ 460 | | |@ 461 | _/ |@ 462 | |__/ @@ 463 | _ @ 464 | | | __@ 465 | | |/ /@ 466 | | < @ 467 | |_|\_\@ 468 | @@ 469 | _ @ 470 | | |@ 471 | | |@ 472 | | |@ 473 | |_|@ 474 | @@ 475 | @ 476 | _ __ ___ @ 477 | | '_ ` _ \ @ 478 | | | | | | |@ 479 | |_| |_| |_|@ 480 | @@ 481 | @ 482 | _ __ @ 483 | | '_ \ @ 484 | | | | |@ 485 | |_| |_|@ 486 | @@ 487 | @ 488 | ___ @ 489 | / _ \ @ 490 | | (_) |@ 491 | \___/ @ 492 | @@ 493 | @ 494 | _ __ @ 495 | | '_ \ @ 496 | | |_) |@ 497 | | .__/ @ 498 | |_| @@ 499 | @ 500 | __ _ @ 501 | / _` |@ 502 | | (_| |@ 503 | \__, |@ 504 | |_|@@ 505 | @ 506 | _ __ @ 507 | | '__|@ 508 | | | @ 509 | |_| @ 510 | @@ 511 | @ 512 | ___ @ 513 | / __|@ 514 | \__ \@ 515 | |___/@ 516 | @@ 517 | _ @ 518 | | |_ @ 519 | | __|@ 520 | | |_ @ 521 | \__|@ 522 | @@ 523 | @ 524 | _ _ @ 525 | | | | |@ 526 | | |_| |@ 527 | \__,_|@ 528 | @@ 529 | @ 530 | __ __@ 531 | \ \ / /@ 532 | \ V / @ 533 | \_/ @ 534 | @@ 535 | @ 536 | __ __@ 537 | \ \ /\ / /@ 538 | \ V V / @ 539 | \_/\_/ @ 540 | @@ 541 | @ 542 | __ __@ 543 | \ \/ /@ 544 | > < @ 545 | /_/\_\@ 546 | @@ 547 | @ 548 | _ _ @ 549 | | | | |@ 550 | | |_| |@ 551 | \__, |@ 552 | |___/ @@ 553 | @ 554 | ____@ 555 | |_ /@ 556 | / / @ 557 | /___|@ 558 | @@ 559 | __@ 560 | / /@ 561 | | | @ 562 | < < @ 563 | | | @ 564 | \_\@@ 565 | _ @ 566 | | |@ 567 | | |@ 568 | | |@ 569 | | |@ 570 | |_|@@ 571 | __ @ 572 | \ \ @ 573 | | | @ 574 | > >@ 575 | | | @ 576 | /_/ @@ 577 | /\/|@ 578 | |/\/ @ 579 | $ @ 580 | $ @ 581 | $ @ 582 | @@ 583 | _ _ @ 584 | (_)_(_)@ 585 | /_\ @ 586 | / _ \ @ 587 | /_/ \_\@ 588 | @@ 589 | _ _ @ 590 | (_)_(_)@ 591 | / _ \ @ 592 | | |_| |@ 593 | \___/ @ 594 | @@ 595 | _ _ @ 596 | (_) (_)@ 597 | | | | |@ 598 | | |_| |@ 599 | \___/ @ 600 | @@ 601 | _ _ @ 602 | (_)_(_)@ 603 | / _` |@ 604 | | (_| |@ 605 | \__,_|@ 606 | @@ 607 | _ _ @ 608 | (_)_(_)@ 609 | / _ \ @ 610 | | (_) |@ 611 | \___/ @ 612 | @@ 613 | _ _ @ 614 | (_) (_)@ 615 | | | | |@ 616 | | |_| |@ 617 | \__,_|@ 618 | @@ 619 | ___ @ 620 | / _ \@ 621 | | |/ /@ 622 | | |\ \@ 623 | | ||_/@ 624 | |_| @@ 625 | 160 NO-BREAK SPACE 626 | $@ 627 | $@ 628 | $@ 629 | $@ 630 | $@ 631 | $@@ 632 | 161 INVERTED EXCLAMATION MARK 633 | _ @ 634 | (_)@ 635 | | |@ 636 | | |@ 637 | |_|@ 638 | @@ 639 | 162 CENT SIGN 640 | _ @ 641 | | | @ 642 | / __)@ 643 | | (__ @ 644 | \ )@ 645 | |_| @@ 646 | 163 POUND SIGN 647 | ___ @ 648 | / ,_\ @ 649 | _| |_ @ 650 | | |___ @ 651 | (_,____|@ 652 | @@ 653 | 164 CURRENCY SIGN 654 | /\___/\@ 655 | \ _ /@ 656 | | (_) |@ 657 | / ___ \@ 658 | \/ \/@ 659 | @@ 660 | 165 YEN SIGN 661 | __ __ @ 662 | \ V / @ 663 | |__ __|@ 664 | |__ __|@ 665 | |_| @ 666 | @@ 667 | 166 BROKEN BAR 668 | _ @ 669 | | |@ 670 | |_|@ 671 | _ @ 672 | | |@ 673 | |_|@@ 674 | 167 SECTION SIGN 675 | __ @ 676 | _/ _)@ 677 | / \ \ @ 678 | \ \\ \@ 679 | \ \_/@ 680 | (__/ @@ 681 | 168 DIAERESIS 682 | _ _ @ 683 | (_) (_)@ 684 | $ $ @ 685 | $ $ @ 686 | $ $ @ 687 | @@ 688 | 169 COPYRIGHT SIGN 689 | _____ @ 690 | / ___ \ @ 691 | / / __| \ @ 692 | | | (__ |@ 693 | \ \___| / @ 694 | \_____/ @@ 695 | 170 FEMININE ORDINAL INDICATOR 696 | __ _ @ 697 | / _` |@ 698 | \__,_|@ 699 | |____|@ 700 | $ @ 701 | @@ 702 | 171 LEFT-POINTING DOUBLE ANGLE QUOTATION MARK 703 | ____@ 704 | / / /@ 705 | / / / @ 706 | \ \ \ @ 707 | \_\_\@ 708 | @@ 709 | 172 NOT SIGN 710 | @ 711 | _____ @ 712 | |___ |@ 713 | |_|@ 714 | $ @ 715 | @@ 716 | 173 SOFT HYPHEN 717 | @ 718 | @ 719 | ____ @ 720 | |____|@ 721 | $ @ 722 | @@ 723 | 174 REGISTERED SIGN 724 | _____ @ 725 | / ___ \ @ 726 | / | _ \ \ @ 727 | | | / |@ 728 | \ |_|_\ / @ 729 | \_____/ @@ 730 | 175 MACRON 731 | _____ @ 732 | |_____|@ 733 | $ @ 734 | $ @ 735 | $ @ 736 | @@ 737 | 176 DEGREE SIGN 738 | __ @ 739 | / \ @ 740 | | () |@ 741 | \__/ @ 742 | $ @ 743 | @@ 744 | 177 PLUS-MINUS SIGN 745 | _ @ 746 | _| |_ @ 747 | |_ _|@ 748 | _|_|_ @ 749 | |_____|@ 750 | @@ 751 | 178 SUPERSCRIPT TWO 752 | ___ @ 753 | |_ )@ 754 | / / @ 755 | /___|@ 756 | $ @ 757 | @@ 758 | 179 SUPERSCRIPT THREE 759 | ____@ 760 | |__ /@ 761 | |_ \@ 762 | |___/@ 763 | $ @ 764 | @@ 765 | 180 ACUTE ACCENT 766 | __@ 767 | /_/@ 768 | $ @ 769 | $ @ 770 | $ @ 771 | @@ 772 | 181 MICRO SIGN 773 | @ 774 | _ _ @ 775 | | | | |@ 776 | | |_| |@ 777 | | ._,_|@ 778 | |_| @@ 779 | 182 PILCROW SIGN 780 | _____ @ 781 | / |@ 782 | | (| | |@ 783 | \__ | |@ 784 | |_|_|@ 785 | @@ 786 | 183 MIDDLE DOT 787 | @ 788 | _ @ 789 | (_)@ 790 | $ @ 791 | $ @ 792 | @@ 793 | 184 CEDILLA 794 | @ 795 | @ 796 | @ 797 | @ 798 | _ @ 799 | )_)@@ 800 | 185 SUPERSCRIPT ONE 801 | _ @ 802 | / |@ 803 | | |@ 804 | |_|@ 805 | $ @ 806 | @@ 807 | 186 MASCULINE ORDINAL INDICATOR 808 | ___ @ 809 | / _ \@ 810 | \___/@ 811 | |___|@ 812 | $ @ 813 | @@ 814 | 187 RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK 815 | ____ @ 816 | \ \ \ @ 817 | \ \ \@ 818 | / / /@ 819 | /_/_/ @ 820 | @@ 821 | 188 VULGAR FRACTION ONE QUARTER 822 | _ __ @ 823 | / | / / _ @ 824 | | |/ / | | @ 825 | |_/ /|_ _|@ 826 | /_/ |_| @ 827 | @@ 828 | 189 VULGAR FRACTION ONE HALF 829 | _ __ @ 830 | / | / /__ @ 831 | | |/ /_ )@ 832 | |_/ / / / @ 833 | /_/ /___|@ 834 | @@ 835 | 190 VULGAR FRACTION THREE QUARTERS 836 | ____ __ @ 837 | |__ / / / _ @ 838 | |_ \/ / | | @ 839 | |___/ /|_ _|@ 840 | /_/ |_| @ 841 | @@ 842 | 191 INVERTED QUESTION MARK 843 | _ @ 844 | (_) @ 845 | | | @ 846 | / /_ @ 847 | \___|@ 848 | @@ 849 | 192 LATIN CAPITAL LETTER A WITH GRAVE 850 | __ @ 851 | \_\ @ 852 | /_\ @ 853 | / _ \ @ 854 | /_/ \_\@ 855 | @@ 856 | 193 LATIN CAPITAL LETTER A WITH ACUTE 857 | __ @ 858 | /_/ @ 859 | /_\ @ 860 | / _ \ @ 861 | /_/ \_\@ 862 | @@ 863 | 194 LATIN CAPITAL LETTER A WITH CIRCUMFLEX 864 | //\ @ 865 | |/_\| @ 866 | /_\ @ 867 | / _ \ @ 868 | /_/ \_\@ 869 | @@ 870 | 195 LATIN CAPITAL LETTER A WITH TILDE 871 | /\/| @ 872 | |/\/ @ 873 | /_\ @ 874 | / _ \ @ 875 | /_/ \_\@ 876 | @@ 877 | 196 LATIN CAPITAL LETTER A WITH DIAERESIS 878 | _ _ @ 879 | (_)_(_)@ 880 | /_\ @ 881 | / _ \ @ 882 | /_/ \_\@ 883 | @@ 884 | 197 LATIN CAPITAL LETTER A WITH RING ABOVE 885 | _ @ 886 | (o) @ 887 | /_\ @ 888 | / _ \ @ 889 | /_/ \_\@ 890 | @@ 891 | 198 LATIN CAPITAL LETTER AE 892 | ______ @ 893 | / ____|@ 894 | / _ _| @ 895 | / __ |___ @ 896 | /_/ |_____|@ 897 | @@ 898 | 199 LATIN CAPITAL LETTER C WITH CEDILLA 899 | ____ @ 900 | / ___|@ 901 | | | @ 902 | | |___ @ 903 | \____|@ 904 | )_) @@ 905 | 200 LATIN CAPITAL LETTER E WITH GRAVE 906 | __ @ 907 | _\_\_ @ 908 | | ____|@ 909 | | _|_ @ 910 | |_____|@ 911 | @@ 912 | 201 LATIN CAPITAL LETTER E WITH ACUTE 913 | __ @ 914 | _/_/_ @ 915 | | ____|@ 916 | | _|_ @ 917 | |_____|@ 918 | @@ 919 | 202 LATIN CAPITAL LETTER E WITH CIRCUMFLEX 920 | //\ @ 921 | |/_\| @ 922 | | ____|@ 923 | | _|_ @ 924 | |_____|@ 925 | @@ 926 | 203 LATIN CAPITAL LETTER E WITH DIAERESIS 927 | _ _ @ 928 | (_)_(_)@ 929 | | ____|@ 930 | | _|_ @ 931 | |_____|@ 932 | @@ 933 | 204 LATIN CAPITAL LETTER I WITH GRAVE 934 | __ @ 935 | \_\ @ 936 | |_ _|@ 937 | | | @ 938 | |___|@ 939 | @@ 940 | 205 LATIN CAPITAL LETTER I WITH ACUTE 941 | __ @ 942 | /_/ @ 943 | |_ _|@ 944 | | | @ 945 | |___|@ 946 | @@ 947 | 206 LATIN CAPITAL LETTER I WITH CIRCUMFLEX 948 | //\ @ 949 | |/_\|@ 950 | |_ _|@ 951 | | | @ 952 | |___|@ 953 | @@ 954 | 207 LATIN CAPITAL LETTER I WITH DIAERESIS 955 | _ _ @ 956 | (_)_(_)@ 957 | |_ _| @ 958 | | | @ 959 | |___| @ 960 | @@ 961 | 208 LATIN CAPITAL LETTER ETH 962 | ____ @ 963 | | _ \ @ 964 | _| |_| |@ 965 | |__ __| |@ 966 | |____/ @ 967 | @@ 968 | 209 LATIN CAPITAL LETTER N WITH TILDE 969 | /\/|@ 970 | |/\/ @ 971 | | \| |@ 972 | | .` |@ 973 | |_|\_|@ 974 | @@ 975 | 210 LATIN CAPITAL LETTER O WITH GRAVE 976 | __ @ 977 | \_\ @ 978 | / _ \ @ 979 | | |_| |@ 980 | \___/ @ 981 | @@ 982 | 211 LATIN CAPITAL LETTER O WITH ACUTE 983 | __ @ 984 | /_/ @ 985 | / _ \ @ 986 | | |_| |@ 987 | \___/ @ 988 | @@ 989 | 212 LATIN CAPITAL LETTER O WITH CIRCUMFLEX 990 | //\ @ 991 | |/_\| @ 992 | / _ \ @ 993 | | |_| |@ 994 | \___/ @ 995 | @@ 996 | 213 LATIN CAPITAL LETTER O WITH TILDE 997 | /\/| @ 998 | |/\/ @ 999 | / _ \ @ 1000 | | |_| |@ 1001 | \___/ @ 1002 | @@ 1003 | 214 LATIN CAPITAL LETTER O WITH DIAERESIS 1004 | _ _ @ 1005 | (_)_(_)@ 1006 | / _ \ @ 1007 | | |_| |@ 1008 | \___/ @ 1009 | @@ 1010 | 215 MULTIPLICATION SIGN 1011 | @ 1012 | @ 1013 | /\/\@ 1014 | > <@ 1015 | \/\/@ 1016 | @@ 1017 | 216 LATIN CAPITAL LETTER O WITH STROKE 1018 | ____ @ 1019 | / _// @ 1020 | | |// |@ 1021 | | //| |@ 1022 | //__/ @ 1023 | @@ 1024 | 217 LATIN CAPITAL LETTER U WITH GRAVE 1025 | __ @ 1026 | _\_\_ @ 1027 | | | | |@ 1028 | | |_| |@ 1029 | \___/ @ 1030 | @@ 1031 | 218 LATIN CAPITAL LETTER U WITH ACUTE 1032 | __ @ 1033 | _/_/_ @ 1034 | | | | |@ 1035 | | |_| |@ 1036 | \___/ @ 1037 | @@ 1038 | 219 LATIN CAPITAL LETTER U WITH CIRCUMFLEX 1039 | //\ @ 1040 | |/ \| @ 1041 | | | | |@ 1042 | | |_| |@ 1043 | \___/ @ 1044 | @@ 1045 | 220 LATIN CAPITAL LETTER U WITH DIAERESIS 1046 | _ _ @ 1047 | (_) (_)@ 1048 | | | | |@ 1049 | | |_| |@ 1050 | \___/ @ 1051 | @@ 1052 | 221 LATIN CAPITAL LETTER Y WITH ACUTE 1053 | __ @ 1054 | __/_/__@ 1055 | \ \ / /@ 1056 | \ V / @ 1057 | |_| @ 1058 | @@ 1059 | 222 LATIN CAPITAL LETTER THORN 1060 | _ @ 1061 | | |___ @ 1062 | | __ \@ 1063 | | ___/@ 1064 | |_| @ 1065 | @@ 1066 | 223 LATIN SMALL LETTER SHARP S 1067 | ___ @ 1068 | / _ \@ 1069 | | |/ /@ 1070 | | |\ \@ 1071 | | ||_/@ 1072 | |_| @@ 1073 | 224 LATIN SMALL LETTER A WITH GRAVE 1074 | __ @ 1075 | \_\_ @ 1076 | / _` |@ 1077 | | (_| |@ 1078 | \__,_|@ 1079 | @@ 1080 | 225 LATIN SMALL LETTER A WITH ACUTE 1081 | __ @ 1082 | /_/_ @ 1083 | / _` |@ 1084 | | (_| |@ 1085 | \__,_|@ 1086 | @@ 1087 | 226 LATIN SMALL LETTER A WITH CIRCUMFLEX 1088 | //\ @ 1089 | |/_\| @ 1090 | / _` |@ 1091 | | (_| |@ 1092 | \__,_|@ 1093 | @@ 1094 | 227 LATIN SMALL LETTER A WITH TILDE 1095 | /\/| @ 1096 | |/\/_ @ 1097 | / _` |@ 1098 | | (_| |@ 1099 | \__,_|@ 1100 | @@ 1101 | 228 LATIN SMALL LETTER A WITH DIAERESIS 1102 | _ _ @ 1103 | (_)_(_)@ 1104 | / _` |@ 1105 | | (_| |@ 1106 | \__,_|@ 1107 | @@ 1108 | 229 LATIN SMALL LETTER A WITH RING ABOVE 1109 | __ @ 1110 | (()) @ 1111 | / _ '|@ 1112 | | (_| |@ 1113 | \__,_|@ 1114 | @@ 1115 | 230 LATIN SMALL LETTER AE 1116 | @ 1117 | __ ____ @ 1118 | / _` _ \@ 1119 | | (_| __/@ 1120 | \__,____|@ 1121 | @@ 1122 | 231 LATIN SMALL LETTER C WITH CEDILLA 1123 | @ 1124 | ___ @ 1125 | / __|@ 1126 | | (__ @ 1127 | \___|@ 1128 | )_) @@ 1129 | 232 LATIN SMALL LETTER E WITH GRAVE 1130 | __ @ 1131 | \_\ @ 1132 | / _ \@ 1133 | | __/@ 1134 | \___|@ 1135 | @@ 1136 | 233 LATIN SMALL LETTER E WITH ACUTE 1137 | __ @ 1138 | /_/ @ 1139 | / _ \@ 1140 | | __/@ 1141 | \___|@ 1142 | @@ 1143 | 234 LATIN SMALL LETTER E WITH CIRCUMFLEX 1144 | //\ @ 1145 | |/_\|@ 1146 | / _ \@ 1147 | | __/@ 1148 | \___|@ 1149 | @@ 1150 | 235 LATIN SMALL LETTER E WITH DIAERESIS 1151 | _ _ @ 1152 | (_)_(_)@ 1153 | / _ \ @ 1154 | | __/ @ 1155 | \___| @ 1156 | @@ 1157 | 236 LATIN SMALL LETTER I WITH GRAVE 1158 | __ @ 1159 | \_\@ 1160 | | |@ 1161 | | |@ 1162 | |_|@ 1163 | @@ 1164 | 237 LATIN SMALL LETTER I WITH ACUTE 1165 | __@ 1166 | /_/@ 1167 | | |@ 1168 | | |@ 1169 | |_|@ 1170 | @@ 1171 | 238 LATIN SMALL LETTER I WITH CIRCUMFLEX 1172 | //\ @ 1173 | |/_\|@ 1174 | | | @ 1175 | | | @ 1176 | |_| @ 1177 | @@ 1178 | 239 LATIN SMALL LETTER I WITH DIAERESIS 1179 | _ _ @ 1180 | (_)_(_)@ 1181 | | | @ 1182 | | | @ 1183 | |_| @ 1184 | @@ 1185 | 240 LATIN SMALL LETTER ETH 1186 | /\/\ @ 1187 | > < @ 1188 | _\/\ |@ 1189 | / __` |@ 1190 | \____/ @ 1191 | @@ 1192 | 241 LATIN SMALL LETTER N WITH TILDE 1193 | /\/| @ 1194 | |/\/ @ 1195 | | '_ \ @ 1196 | | | | |@ 1197 | |_| |_|@ 1198 | @@ 1199 | 242 LATIN SMALL LETTER O WITH GRAVE 1200 | __ @ 1201 | \_\ @ 1202 | / _ \ @ 1203 | | (_) |@ 1204 | \___/ @ 1205 | @@ 1206 | 243 LATIN SMALL LETTER O WITH ACUTE 1207 | __ @ 1208 | /_/ @ 1209 | / _ \ @ 1210 | | (_) |@ 1211 | \___/ @ 1212 | @@ 1213 | 244 LATIN SMALL LETTER O WITH CIRCUMFLEX 1214 | //\ @ 1215 | |/_\| @ 1216 | / _ \ @ 1217 | | (_) |@ 1218 | \___/ @ 1219 | @@ 1220 | 245 LATIN SMALL LETTER O WITH TILDE 1221 | /\/| @ 1222 | |/\/ @ 1223 | / _ \ @ 1224 | | (_) |@ 1225 | \___/ @ 1226 | @@ 1227 | 246 LATIN SMALL LETTER O WITH DIAERESIS 1228 | _ _ @ 1229 | (_)_(_)@ 1230 | / _ \ @ 1231 | | (_) |@ 1232 | \___/ @ 1233 | @@ 1234 | 247 DIVISION SIGN 1235 | @ 1236 | _ @ 1237 | _(_)_ @ 1238 | |_____|@ 1239 | (_) @ 1240 | @@ 1241 | 248 LATIN SMALL LETTER O WITH STROKE 1242 | @ 1243 | ____ @ 1244 | / _//\ @ 1245 | | (//) |@ 1246 | \//__/ @ 1247 | @@ 1248 | 249 LATIN SMALL LETTER U WITH GRAVE 1249 | __ @ 1250 | _\_\_ @ 1251 | | | | |@ 1252 | | |_| |@ 1253 | \__,_|@ 1254 | @@ 1255 | 250 LATIN SMALL LETTER U WITH ACUTE 1256 | __ @ 1257 | _/_/_ @ 1258 | | | | |@ 1259 | | |_| |@ 1260 | \__,_|@ 1261 | @@ 1262 | 251 LATIN SMALL LETTER U WITH CIRCUMFLEX 1263 | //\ @ 1264 | |/ \| @ 1265 | | | | |@ 1266 | | |_| |@ 1267 | \__,_|@ 1268 | @@ 1269 | 252 LATIN SMALL LETTER U WITH DIAERESIS 1270 | _ _ @ 1271 | (_) (_)@ 1272 | | | | |@ 1273 | | |_| |@ 1274 | \__,_|@ 1275 | @@ 1276 | 253 LATIN SMALL LETTER Y WITH ACUTE 1277 | __ @ 1278 | _/_/_ @ 1279 | | | | |@ 1280 | | |_| |@ 1281 | \__, |@ 1282 | |___/ @@ 1283 | 254 LATIN SMALL LETTER THORN 1284 | _ @ 1285 | | |__ @ 1286 | | '_ \ @ 1287 | | |_) |@ 1288 | | .__/ @ 1289 | |_| @@ 1290 | 255 LATIN SMALL LETTER Y WITH DIAERESIS 1291 | _ _ @ 1292 | (_) (_)@ 1293 | | | | |@ 1294 | | |_| |@ 1295 | \__, |@ 1296 | |___/ @@ 1297 | 0x0100 LATIN CAPITAL LETTER A WITH MACRON 1298 | ____ @ 1299 | /___/ @ 1300 | /_\ @ 1301 | / _ \ @ 1302 | /_/ \_\@ 1303 | @@ 1304 | 0x0101 LATIN SMALL LETTER A WITH MACRON 1305 | ___ @ 1306 | /_ _/@ 1307 | / _` |@ 1308 | | (_| |@ 1309 | \__,_|@ 1310 | @@ 1311 | 0x0102 LATIN CAPITAL LETTER A WITH BREVE 1312 | _ _ @ 1313 | \\_// @ 1314 | /_\ @ 1315 | / _ \ @ 1316 | /_/ \_\@ 1317 | @@ 1318 | 0x0103 LATIN SMALL LETTER A WITH BREVE 1319 | \_/ @ 1320 | ___ @ 1321 | / _` |@ 1322 | | (_| |@ 1323 | \__,_|@ 1324 | @@ 1325 | 0x0104 LATIN CAPITAL LETTER A WITH OGONEK 1326 | @ 1327 | _ @ 1328 | /_\ @ 1329 | / _ \ @ 1330 | /_/ \_\@ 1331 | (_(@@ 1332 | 0x0105 LATIN SMALL LETTER A WITH OGONEK 1333 | @ 1334 | __ _ @ 1335 | / _` |@ 1336 | | (_| |@ 1337 | \__,_|@ 1338 | (_(@@ 1339 | 0x0106 LATIN CAPITAL LETTER C WITH ACUTE 1340 | __ @ 1341 | _/_/ @ 1342 | / ___|@ 1343 | | |___ @ 1344 | \____|@ 1345 | @@ 1346 | 0x0107 LATIN SMALL LETTER C WITH ACUTE 1347 | __ @ 1348 | /__/@ 1349 | / __|@ 1350 | | (__ @ 1351 | \___|@ 1352 | @@ 1353 | 0x0108 LATIN CAPITAL LETTER C WITH CIRCUMFLEX 1354 | /\ @ 1355 | _//\\@ 1356 | / ___|@ 1357 | | |___ @ 1358 | \____|@ 1359 | @@ 1360 | 0x0109 LATIN SMALL LETTER C WITH CIRCUMFLEX 1361 | /\ @ 1362 | /_\ @ 1363 | / __|@ 1364 | | (__ @ 1365 | \___|@ 1366 | @@ 1367 | 0x010A LATIN CAPITAL LETTER C WITH DOT ABOVE 1368 | [] @ 1369 | ____ @ 1370 | / ___|@ 1371 | | |___ @ 1372 | \____|@ 1373 | @@ 1374 | 0x010B LATIN SMALL LETTER C WITH DOT ABOVE 1375 | [] @ 1376 | ___ @ 1377 | / __|@ 1378 | | (__ @ 1379 | \___|@ 1380 | @@ 1381 | 0x010C LATIN CAPITAL LETTER C WITH CARON 1382 | \\// @ 1383 | _\/_ @ 1384 | / ___|@ 1385 | | |___ @ 1386 | \____|@ 1387 | @@ 1388 | 0x010D LATIN SMALL LETTER C WITH CARON 1389 | \\//@ 1390 | _\/ @ 1391 | / __|@ 1392 | | (__ @ 1393 | \___|@ 1394 | @@ 1395 | 0x010E LATIN CAPITAL LETTER D WITH CARON 1396 | \\// @ 1397 | __\/ @ 1398 | | _ \ @ 1399 | | |_| |@ 1400 | |____/ @ 1401 | @@ 1402 | 0x010F LATIN SMALL LETTER D WITH CARON 1403 | \/ _ @ 1404 | __| |@ 1405 | / _` |@ 1406 | | (_| |@ 1407 | \__,_|@ 1408 | @@ 1409 | 0x0110 LATIN CAPITAL LETTER D WITH STROKE 1410 | ____ @ 1411 | |_ __ \ @ 1412 | /| |/ | |@ 1413 | /|_|/_| |@ 1414 | |_____/ @ 1415 | @@ 1416 | 0x0111 LATIN SMALL LETTER D WITH STROKE 1417 | ---|@ 1418 | __| |@ 1419 | / _` |@ 1420 | | (_| |@ 1421 | \__,_|@ 1422 | @@ 1423 | 0x0112 LATIN CAPITAL LETTER E WITH MACRON 1424 | ____ @ 1425 | /___/ @ 1426 | | ____|@ 1427 | | _|_ @ 1428 | |_____|@ 1429 | @@ 1430 | 0x0113 LATIN SMALL LETTER E WITH MACRON 1431 | ____@ 1432 | /_ _/@ 1433 | / _ \ @ 1434 | | __/ @ 1435 | \___| @ 1436 | @@ 1437 | 0x0114 LATIN CAPITAL LETTER E WITH BREVE 1438 | _ _ @ 1439 | \\_// @ 1440 | | ____|@ 1441 | | _|_ @ 1442 | |_____|@ 1443 | @@ 1444 | 0x0115 LATIN SMALL LETTER E WITH BREVE 1445 | \\ //@ 1446 | -- @ 1447 | / _ \ @ 1448 | | __/ @ 1449 | \___| @ 1450 | @@ 1451 | 0x0116 LATIN CAPITAL LETTER E WITH DOT ABOVE 1452 | [] @ 1453 | _____ @ 1454 | | ____|@ 1455 | | _|_ @ 1456 | |_____|@ 1457 | @@ 1458 | 0x0117 LATIN SMALL LETTER E WITH DOT ABOVE 1459 | [] @ 1460 | __ @ 1461 | / _ \@ 1462 | | __/@ 1463 | \___|@ 1464 | @@ 1465 | 0x0118 LATIN CAPITAL LETTER E WITH OGONEK 1466 | @ 1467 | _____ @ 1468 | | ____|@ 1469 | | _|_ @ 1470 | |_____|@ 1471 | (__(@@ 1472 | 0x0119 LATIN SMALL LETTER E WITH OGONEK 1473 | @ 1474 | ___ @ 1475 | / _ \@ 1476 | | __/@ 1477 | \___|@ 1478 | (_(@@ 1479 | 0x011A LATIN CAPITAL LETTER E WITH CARON 1480 | \\// @ 1481 | __\/_ @ 1482 | | ____|@ 1483 | | _|_ @ 1484 | |_____|@ 1485 | @@ 1486 | 0x011B LATIN SMALL LETTER E WITH CARON 1487 | \\//@ 1488 | \/ @ 1489 | / _ \@ 1490 | | __/@ 1491 | \___|@ 1492 | @@ 1493 | 0x011C LATIN CAPITAL LETTER G WITH CIRCUMFLEX 1494 | _/\_ @ 1495 | / ___|@ 1496 | | | _ @ 1497 | | |_| |@ 1498 | \____|@ 1499 | @@ 1500 | 0x011D LATIN SMALL LETTER G WITH CIRCUMFLEX 1501 | /\ @ 1502 | _/_ \@ 1503 | / _` |@ 1504 | | (_| |@ 1505 | \__, |@ 1506 | |___/ @@ 1507 | 0x011E LATIN CAPITAL LETTER G WITH BREVE 1508 | _\/_ @ 1509 | / ___|@ 1510 | | | _ @ 1511 | | |_| |@ 1512 | \____|@ 1513 | @@ 1514 | 0x011F LATIN SMALL LETTER G WITH BREVE 1515 | \___/ @ 1516 | __ _ @ 1517 | / _` |@ 1518 | | (_| |@ 1519 | \__, |@ 1520 | |___/ @@ 1521 | 0x0120 LATIN CAPITAL LETTER G WITH DOT ABOVE 1522 | _[]_ @ 1523 | / ___|@ 1524 | | | _ @ 1525 | | |_| |@ 1526 | \____|@ 1527 | @@ 1528 | 0x0121 LATIN SMALL LETTER G WITH DOT ABOVE 1529 | [] @ 1530 | __ _ @ 1531 | / _` |@ 1532 | | (_| |@ 1533 | \__, |@ 1534 | |___/ @@ 1535 | 0x0122 LATIN CAPITAL LETTER G WITH CEDILLA 1536 | ____ @ 1537 | / ___|@ 1538 | | | _ @ 1539 | | |_| |@ 1540 | \____|@ 1541 | )__) @@ 1542 | 0x0123 LATIN SMALL LETTER G WITH CEDILLA 1543 | @ 1544 | __ _ @ 1545 | / _` |@ 1546 | | (_| |@ 1547 | \__, |@ 1548 | |_))))@@ 1549 | 0x0124 LATIN CAPITAL LETTER H WITH CIRCUMFLEX 1550 | _/ \_ @ 1551 | | / \ |@ 1552 | | |_| |@ 1553 | | _ |@ 1554 | |_| |_|@ 1555 | @@ 1556 | 0x0125 LATIN SMALL LETTER H WITH CIRCUMFLEX 1557 | _ /\ @ 1558 | | |//\ @ 1559 | | '_ \ @ 1560 | | | | |@ 1561 | |_| |_|@ 1562 | @@ 1563 | 0x0126 LATIN CAPITAL LETTER H WITH STROKE 1564 | _ _ @ 1565 | | |=| |@ 1566 | | |_| |@ 1567 | | _ |@ 1568 | |_| |_|@ 1569 | @@ 1570 | 0x0127 LATIN SMALL LETTER H WITH STROKE 1571 | _ @ 1572 | |=|__ @ 1573 | | '_ \ @ 1574 | | | | |@ 1575 | |_| |_|@ 1576 | @@ 1577 | 0x0128 LATIN CAPITAL LETTER I WITH TILDE 1578 | /\//@ 1579 | |_ _|@ 1580 | | | @ 1581 | | | @ 1582 | |___|@ 1583 | @@ 1584 | 0x0129 LATIN SMALL LETTER I WITH TILDE 1585 | @ 1586 | /\/@ 1587 | | |@ 1588 | | |@ 1589 | |_|@ 1590 | @@ 1591 | 0x012A LATIN CAPITAL LETTER I WITH MACRON 1592 | /___/@ 1593 | |_ _|@ 1594 | | | @ 1595 | | | @ 1596 | |___|@ 1597 | @@ 1598 | 0x012B LATIN SMALL LETTER I WITH MACRON 1599 | ____@ 1600 | /___/@ 1601 | | | @ 1602 | | | @ 1603 | |_| @ 1604 | @@ 1605 | 0x012C LATIN CAPITAL LETTER I WITH BREVE 1606 | \__/@ 1607 | |_ _|@ 1608 | | | @ 1609 | | | @ 1610 | |___|@ 1611 | @@ 1612 | 0x012D LATIN SMALL LETTER I WITH BREVE 1613 | @ 1614 | \_/@ 1615 | | |@ 1616 | | |@ 1617 | |_|@ 1618 | @@ 1619 | 0x012E LATIN CAPITAL LETTER I WITH OGONEK 1620 | ___ @ 1621 | |_ _|@ 1622 | | | @ 1623 | | | @ 1624 | |___|@ 1625 | (__(@@ 1626 | 0x012F LATIN SMALL LETTER I WITH OGONEK 1627 | _ @ 1628 | (_) @ 1629 | | | @ 1630 | | | @ 1631 | |_|_@ 1632 | (_(@@ 1633 | 0x0130 LATIN CAPITAL LETTER I WITH DOT ABOVE 1634 | _[] @ 1635 | |_ _|@ 1636 | | | @ 1637 | | | @ 1638 | |___|@ 1639 | @@ 1640 | 0x0131 LATIN SMALL LETTER DOTLESS I 1641 | @ 1642 | _ @ 1643 | | |@ 1644 | | |@ 1645 | |_|@ 1646 | @@ 1647 | 0x0132 LATIN CAPITAL LIGATURE IJ 1648 | ___ _ @ 1649 | |_ _|| |@ 1650 | | | | |@ 1651 | | |_| |@ 1652 | |__|__/ @ 1653 | @@ 1654 | 0x0133 LATIN SMALL LIGATURE IJ 1655 | _ _ @ 1656 | (_) (_)@ 1657 | | | | |@ 1658 | | | | |@ 1659 | |_|_/ |@ 1660 | |__/ @@ 1661 | 0x0134 LATIN CAPITAL LETTER J WITH CIRCUMFLEX 1662 | /\ @ 1663 | /_\|@ 1664 | _ | | @ 1665 | | |_| | @ 1666 | \___/ @ 1667 | @@ 1668 | 0x0135 LATIN SMALL LETTER J WITH CIRCUMFLEX 1669 | /\@ 1670 | /_\@ 1671 | | |@ 1672 | | |@ 1673 | _/ |@ 1674 | |__/ @@ 1675 | 0x0136 LATIN CAPITAL LETTER K WITH CEDILLA 1676 | _ _ @ 1677 | | |/ / @ 1678 | | ' / @ 1679 | | . \ @ 1680 | |_|\_\ @ 1681 | )__)@@ 1682 | 0x0137 LATIN SMALL LETTER K WITH CEDILLA 1683 | _ @ 1684 | | | __@ 1685 | | |/ /@ 1686 | | < @ 1687 | |_|\_\@ 1688 | )_)@@ 1689 | 0x0138 LATIN SMALL LETTER KRA 1690 | @ 1691 | _ __ @ 1692 | | |/ \@ 1693 | | < @ 1694 | |_|\_\@ 1695 | @@ 1696 | 0x0139 LATIN CAPITAL LETTER L WITH ACUTE 1697 | _ //@ 1698 | | | // @ 1699 | | | @ 1700 | | |___ @ 1701 | |_____|@ 1702 | @@ 1703 | 0x013A LATIN SMALL LETTER L WITH ACUTE 1704 | //@ 1705 | | |@ 1706 | | |@ 1707 | | |@ 1708 | |_|@ 1709 | @@ 1710 | 0x013B LATIN CAPITAL LETTER L WITH CEDILLA 1711 | _ @ 1712 | | | @ 1713 | | | @ 1714 | | |___ @ 1715 | |_____|@ 1716 | )__)@@ 1717 | 0x013C LATIN SMALL LETTER L WITH CEDILLA 1718 | _ @ 1719 | | | @ 1720 | | | @ 1721 | | | @ 1722 | |_| @ 1723 | )_)@@ 1724 | 0x013D LATIN CAPITAL LETTER L WITH CARON 1725 | _ \\//@ 1726 | | | \/ @ 1727 | | | @ 1728 | | |___ @ 1729 | |_____|@ 1730 | @@ 1731 | 0x013E LATIN SMALL LETTER L WITH CARON 1732 | _ \\//@ 1733 | | | \/ @ 1734 | | | @ 1735 | | | @ 1736 | |_| @ 1737 | @@ 1738 | 0x013F LATIN CAPITAL LETTER L WITH MIDDLE DOT 1739 | _ @ 1740 | | | @ 1741 | | | [] @ 1742 | | |___ @ 1743 | |_____|@ 1744 | @@ 1745 | 0x0140 LATIN SMALL LETTER L WITH MIDDLE DOT 1746 | _ @ 1747 | | | @ 1748 | | | []@ 1749 | | | @ 1750 | |_| @ 1751 | @@ 1752 | 0x0141 LATIN CAPITAL LETTER L WITH STROKE 1753 | __ @ 1754 | | // @ 1755 | |//| @ 1756 | // |__ @ 1757 | |_____|@ 1758 | @@ 1759 | 0x0142 LATIN SMALL LETTER L WITH STROKE 1760 | _ @ 1761 | | |@ 1762 | |//@ 1763 | //|@ 1764 | |_|@ 1765 | @@ 1766 | 0x0143 LATIN CAPITAL LETTER N WITH ACUTE 1767 | _/ /_ @ 1768 | | \ | |@ 1769 | | \| |@ 1770 | | |\ |@ 1771 | |_| \_|@ 1772 | @@ 1773 | 0x0144 LATIN SMALL LETTER N WITH ACUTE 1774 | _ @ 1775 | _ /_/ @ 1776 | | '_ \ @ 1777 | | | | |@ 1778 | |_| |_|@ 1779 | @@ 1780 | 0x0145 LATIN CAPITAL LETTER N WITH CEDILLA 1781 | _ _ @ 1782 | | \ | |@ 1783 | | \| |@ 1784 | | |\ |@ 1785 | |_| \_|@ 1786 | )_) @@ 1787 | 0x0146 LATIN SMALL LETTER N WITH CEDILLA 1788 | @ 1789 | _ __ @ 1790 | | '_ \ @ 1791 | | | | |@ 1792 | |_| |_|@ 1793 | )_) @@ 1794 | 0x0147 LATIN CAPITAL LETTER N WITH CARON 1795 | _\/ _ @ 1796 | | \ | |@ 1797 | | \| |@ 1798 | | |\ |@ 1799 | |_| \_|@ 1800 | @@ 1801 | 0x0148 LATIN SMALL LETTER N WITH CARON 1802 | \\// @ 1803 | _\/_ @ 1804 | | '_ \ @ 1805 | | | | |@ 1806 | |_| |_|@ 1807 | @@ 1808 | 0x0149 LATIN SMALL LETTER N PRECEDED BY APOSTROPHE 1809 | @ 1810 | _ __ @ 1811 | ( )| '_\ @ 1812 | |/| | | |@ 1813 | |_| |_|@ 1814 | @@ 1815 | 0x014A LATIN CAPITAL LETTER ENG 1816 | _ _ @ 1817 | | \ | |@ 1818 | | \| |@ 1819 | | |\ |@ 1820 | |_| \ |@ 1821 | )_)@@ 1822 | 0x014B LATIN SMALL LETTER ENG 1823 | _ __ @ 1824 | | '_ \ @ 1825 | | | | |@ 1826 | |_| | |@ 1827 | | |@ 1828 | |__ @@ 1829 | 0x014C LATIN CAPITAL LETTER O WITH MACRON 1830 | ____ @ 1831 | /_ _/ @ 1832 | / _ \ @ 1833 | | (_) |@ 1834 | \___/ @ 1835 | @@ 1836 | 0x014D LATIN SMALL LETTER O WITH MACRON 1837 | ____ @ 1838 | /_ _/ @ 1839 | / _ \ @ 1840 | | (_) |@ 1841 | \___/ @ 1842 | @@ 1843 | 0x014E LATIN CAPITAL LETTER O WITH BREVE 1844 | \ / @ 1845 | _-_ @ 1846 | / _ \ @ 1847 | | |_| |@ 1848 | \___/ @ 1849 | @@ 1850 | 0x014F LATIN SMALL LETTER O WITH BREVE 1851 | \ / @ 1852 | _-_ @ 1853 | / _ \ @ 1854 | | |_| |@ 1855 | \___/ @ 1856 | @@ 1857 | 0x0150 LATIN CAPITAL LETTER O WITH DOUBLE ACUTE 1858 | ___ @ 1859 | /_/_/@ 1860 | / _ \ @ 1861 | | |_| |@ 1862 | \___/ @ 1863 | @@ 1864 | 0x0151 LATIN SMALL LETTER O WITH DOUBLE ACUTE 1865 | ___ @ 1866 | /_/_/@ 1867 | / _ \ @ 1868 | | |_| |@ 1869 | \___/ @ 1870 | @@ 1871 | 0x0152 LATIN CAPITAL LIGATURE OE 1872 | ___ ___ @ 1873 | / _ \| __|@ 1874 | | | | | | @ 1875 | | |_| | |__@ 1876 | \___/|____@ 1877 | @@ 1878 | 0x0153 LATIN SMALL LIGATURE OE 1879 | @ 1880 | ___ ___ @ 1881 | / _ \ / _ \@ 1882 | | (_) | __/@ 1883 | \___/ \___|@ 1884 | @@ 1885 | 0x0154 LATIN CAPITAL LETTER R WITH ACUTE 1886 | _/_/ @ 1887 | | _ \ @ 1888 | | |_) |@ 1889 | | _ < @ 1890 | |_| \_\@ 1891 | @@ 1892 | 0x0155 LATIN SMALL LETTER R WITH ACUTE 1893 | __@ 1894 | _ /_/@ 1895 | | '__|@ 1896 | | | @ 1897 | |_| @ 1898 | @@ 1899 | 0x0156 LATIN CAPITAL LETTER R WITH CEDILLA 1900 | ____ @ 1901 | | _ \ @ 1902 | | |_) |@ 1903 | | _ < @ 1904 | |_| \_\@ 1905 | )_) @@ 1906 | 0x0157 LATIN SMALL LETTER R WITH CEDILLA 1907 | @ 1908 | _ __ @ 1909 | | '__|@ 1910 | | | @ 1911 | |_| @ 1912 | )_) @@ 1913 | 0x0158 LATIN CAPITAL LETTER R WITH CARON 1914 | _\_/ @ 1915 | | _ \ @ 1916 | | |_) |@ 1917 | | _ < @ 1918 | |_| \_\@ 1919 | @@ 1920 | 0x0159 LATIN SMALL LETTER R WITH CARON 1921 | \\// @ 1922 | _\/_ @ 1923 | | '__|@ 1924 | | | @ 1925 | |_| @ 1926 | @@ 1927 | 0x015A LATIN CAPITAL LETTER S WITH ACUTE 1928 | _/_/ @ 1929 | / ___| @ 1930 | \___ \ @ 1931 | ___) |@ 1932 | |____/ @ 1933 | @@ 1934 | 0x015B LATIN SMALL LETTER S WITH ACUTE 1935 | __@ 1936 | _/_/@ 1937 | / __|@ 1938 | \__ \@ 1939 | |___/@ 1940 | @@ 1941 | 0x015C LATIN CAPITAL LETTER S WITH CIRCUMFLEX 1942 | _/\_ @ 1943 | / ___| @ 1944 | \___ \ @ 1945 | ___) |@ 1946 | |____/ @ 1947 | @@ 1948 | 0x015D LATIN SMALL LETTER S WITH CIRCUMFLEX 1949 | @ 1950 | /_\_@ 1951 | / __|@ 1952 | \__ \@ 1953 | |___/@ 1954 | @@ 1955 | 0x015E LATIN CAPITAL LETTER S WITH CEDILLA 1956 | ____ @ 1957 | / ___| @ 1958 | \___ \ @ 1959 | ___) |@ 1960 | |____/ @ 1961 | )__)@@ 1962 | 0x015F LATIN SMALL LETTER S WITH CEDILLA 1963 | @ 1964 | ___ @ 1965 | / __|@ 1966 | \__ \@ 1967 | |___/@ 1968 | )_)@@ 1969 | 0x0160 LATIN CAPITAL LETTER S WITH CARON 1970 | _\_/ @ 1971 | / ___| @ 1972 | \___ \ @ 1973 | ___) |@ 1974 | |____/ @ 1975 | @@ 1976 | 0x0161 LATIN SMALL LETTER S WITH CARON 1977 | \\//@ 1978 | _\/ @ 1979 | / __|@ 1980 | \__ \@ 1981 | |___/@ 1982 | @@ 1983 | 0x0162 LATIN CAPITAL LETTER T WITH CEDILLA 1984 | _____ @ 1985 | |_ _|@ 1986 | | | @ 1987 | | | @ 1988 | |_| @ 1989 | )__)@@ 1990 | 0x0163 LATIN SMALL LETTER T WITH CEDILLA 1991 | _ @ 1992 | | |_ @ 1993 | | __|@ 1994 | | |_ @ 1995 | \__|@ 1996 | )_)@@ 1997 | 0x0164 LATIN CAPITAL LETTER T WITH CARON 1998 | _____ @ 1999 | |_ _|@ 2000 | | | @ 2001 | | | @ 2002 | |_| @ 2003 | @@ 2004 | 0x0165 LATIN SMALL LETTER T WITH CARON 2005 | \/ @ 2006 | | |_ @ 2007 | | __|@ 2008 | | |_ @ 2009 | \__|@ 2010 | @@ 2011 | 0x0166 LATIN CAPITAL LETTER T WITH STROKE 2012 | _____ @ 2013 | |_ _|@ 2014 | | | @ 2015 | -|-|- @ 2016 | |_| @ 2017 | @@ 2018 | 0x0167 LATIN SMALL LETTER T WITH STROKE 2019 | _ @ 2020 | | |_ @ 2021 | | __|@ 2022 | |-|_ @ 2023 | \__|@ 2024 | @@ 2025 | 0x0168 LATIN CAPITAL LETTER U WITH TILDE 2026 | @ 2027 | _/\/_ @ 2028 | | | | |@ 2029 | | |_| |@ 2030 | \___/ @ 2031 | @@ 2032 | 0x0169 LATIN SMALL LETTER U WITH TILDE 2033 | @ 2034 | _/\/_ @ 2035 | | | | |@ 2036 | | |_| |@ 2037 | \__,_|@ 2038 | @@ 2039 | 0x016A LATIN CAPITAL LETTER U WITH MACRON 2040 | ____ @ 2041 | /__ _/@ 2042 | | | | |@ 2043 | | |_| |@ 2044 | \___/ @ 2045 | @@ 2046 | 0x016B LATIN SMALL LETTER U WITH MACRON 2047 | ____ @ 2048 | / _ /@ 2049 | | | | |@ 2050 | | |_| |@ 2051 | \__,_|@ 2052 | @@ 2053 | 0x016C LATIN CAPITAL LETTER U WITH BREVE 2054 | @ 2055 | \_/_ @ 2056 | | | | |@ 2057 | | |_| |@ 2058 | \____|@ 2059 | @@ 2060 | 0x016D LATIN SMALL LETTER U WITH BREVE 2061 | @ 2062 | \_/_ @ 2063 | | | | |@ 2064 | | |_| |@ 2065 | \__,_|@ 2066 | @@ 2067 | 0x016E LATIN CAPITAL LETTER U WITH RING ABOVE 2068 | O @ 2069 | __ _ @ 2070 | | | | |@ 2071 | | |_| |@ 2072 | \___/ @ 2073 | @@ 2074 | 0x016F LATIN SMALL LETTER U WITH RING ABOVE 2075 | O @ 2076 | __ __ @ 2077 | | | | |@ 2078 | | |_| |@ 2079 | \__,_|@ 2080 | @@ 2081 | 0x0170 LATIN CAPITAL LETTER U WITH DOUBLE ACUTE 2082 | -- --@ 2083 | /_//_/@ 2084 | | | | |@ 2085 | | |_| |@ 2086 | \___/ @ 2087 | @@ 2088 | 0x0171 LATIN SMALL LETTER U WITH DOUBLE ACUTE 2089 | ____@ 2090 | _/_/_/@ 2091 | | | | |@ 2092 | | |_| |@ 2093 | \__,_|@ 2094 | @@ 2095 | 0x0172 LATIN CAPITAL LETTER U WITH OGONEK 2096 | _ _ @ 2097 | | | | |@ 2098 | | | | |@ 2099 | | |_| |@ 2100 | \___/ @ 2101 | (__(@@ 2102 | 0x0173 LATIN SMALL LETTER U WITH OGONEK 2103 | @ 2104 | _ _ @ 2105 | | | | |@ 2106 | | |_| |@ 2107 | \__,_|@ 2108 | (_(@@ 2109 | 0x0174 LATIN CAPITAL LETTER W WITH CIRCUMFLEX 2110 | __ /\ __@ 2111 | \ \ //\\/ /@ 2112 | \ \ /\ / / @ 2113 | \ V V / @ 2114 | \_/\_/ @ 2115 | @@ 2116 | 0x0175 LATIN SMALL LETTER W WITH CIRCUMFLEX 2117 | /\ @ 2118 | __ //\\__@ 2119 | \ \ /\ / /@ 2120 | \ V V / @ 2121 | \_/\_/ @ 2122 | @@ 2123 | 0x0176 LATIN CAPITAL LETTER Y WITH CIRCUMFLEX 2124 | /\ @ 2125 | __//\\ @ 2126 | \ \ / /@ 2127 | \ V / @ 2128 | |_| @ 2129 | @@ 2130 | 0x0177 LATIN SMALL LETTER Y WITH CIRCUMFLEX 2131 | /\ @ 2132 | //\\ @ 2133 | | | | |@ 2134 | | |_| |@ 2135 | \__, |@ 2136 | |___/ @@ 2137 | 0x0178 LATIN CAPITAL LETTER Y WITH DIAERESIS 2138 | [] []@ 2139 | __ _@ 2140 | \ \ / /@ 2141 | \ V / @ 2142 | |_| @ 2143 | @@ 2144 | 0x0179 LATIN CAPITAL LETTER Z WITH ACUTE 2145 | __/_/@ 2146 | |__ /@ 2147 | / / @ 2148 | / /_ @ 2149 | /____|@ 2150 | @@ 2151 | 0x017A LATIN SMALL LETTER Z WITH ACUTE 2152 | _ @ 2153 | _/_/@ 2154 | |_ /@ 2155 | / / @ 2156 | /___|@ 2157 | @@ 2158 | 0x017B LATIN CAPITAL LETTER Z WITH DOT ABOVE 2159 | __[]_@ 2160 | |__ /@ 2161 | / / @ 2162 | / /_ @ 2163 | /____|@ 2164 | @@ 2165 | 0x017C LATIN SMALL LETTER Z WITH DOT ABOVE 2166 | [] @ 2167 | ____@ 2168 | |_ /@ 2169 | / / @ 2170 | /___|@ 2171 | @@ 2172 | 0x017D LATIN CAPITAL LETTER Z WITH CARON 2173 | _\_/_@ 2174 | |__ /@ 2175 | / / @ 2176 | / /_ @ 2177 | /____|@ 2178 | @@ 2179 | 0x017E LATIN SMALL LETTER Z WITH CARON 2180 | \\//@ 2181 | _\/_@ 2182 | |_ /@ 2183 | / / @ 2184 | /___|@ 2185 | @@ 2186 | 0x017F LATIN SMALL LETTER LONG S 2187 | __ @ 2188 | / _|@ 2189 | |-| | @ 2190 | |-| | @ 2191 | |_| @ 2192 | @@ 2193 | 0x02C7 CARON 2194 | \\//@ 2195 | \/ @ 2196 | $@ 2197 | $@ 2198 | $@ 2199 | $@@ 2200 | 0x02D8 BREVE 2201 | \\_//@ 2202 | \_/ @ 2203 | $@ 2204 | $@ 2205 | $@ 2206 | $@@ 2207 | 0x02D9 DOT ABOVE 2208 | []@ 2209 | $@ 2210 | $@ 2211 | $@ 2212 | $@ 2213 | $@@ 2214 | 0x02DB OGONEK 2215 | $@ 2216 | $@ 2217 | $@ 2218 | $@ 2219 | $@ 2220 | )_) @@ 2221 | 0x02DD DOUBLE ACUTE ACCENT 2222 | _ _ @ 2223 | /_/_/@ 2224 | $@ 2225 | $@ 2226 | $@ 2227 | $@@ 2228 | -------------------------------------------------------------------------------- /Tests/FigletTests/FigletTests.swift: -------------------------------------------------------------------------------- 1 | //===----------------------------------------------------------------------===// 2 | // 3 | // This source file is part of the Swift open source project 4 | // 5 | // Copyright (c) 2023 Apple Inc. and the Swift project authors 6 | // Licensed under Apache License v2.0 with Runtime Library Exception 7 | // 8 | // See http://swift.org/LICENSE.txt for license information 9 | // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors 10 | // 11 | //===-------------------------------------------------------------------- 12 | 13 | @testable import Figlet 14 | import XCTest 15 | 16 | final class FigletTests: XCTestCase {} 17 | --------------------------------------------------------------------------------