Swiftpack.co - griffin-stewie/HTMLBudouX.swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by griffin-stewie.
griffin-stewie/HTMLBudouX.swift v0.2.0
Support library of BudouX.swift to handle HTML
⭐️ 1
🕓 2 years ago
.package(url: "https://github.com/griffin-stewie/HTMLBudouX.swift.git", from: "v0.2.0")

HTMLBudouX.swift

HTMLBudouX.swift is a support library of BudouX.swift to handle HTML.

Detail about BudouX.swift is here

Usage

You can translate an HTML string by wrapping phrases with non-breaking markup.

import BudouX
import HTMLBudouX
// Load Default Japanese Parser
let parser = Parser()
// Parse
print(parser.translateHTMLString(html: "今日は<b>とても天気</b>です。"))
// <span style="word-break: keep-all; overflow-wrap: break-word;">今日は<b><wbr>とても<wbr>天気</b>です。</span>

Install

Support Swift Package Manager only. There are no plans to support other package management tools at this time.

package.append(
    .package(url: "https://github.com/griffin-stewie/HTMLBudouX.swift", from: "0.2.0")
)

package.targets.append(
    .target(name: "Foo", dependencies: [
        .productItem(name: "HTMLBudouX", package: "HTMLBudouX.swift")
    ])
)

GitHub

link
Stars: 1
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics