承接 soderlind/ps-hyphenate 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

soderlind/ps-hyphenate

Composer 安装命令:

composer require soderlind/ps-hyphenate

包简介

WordPress plugin that improves wrapping of long compound words with native hyphenation and optional render-time soft hyphen exceptions.

README 文档

README

WordPress plugin that improves text wrapping for long compound words in languages like German, Norwegian, Swedish, and Dutch.

Screenshot 2026-05-06 at 01 14 03

Features

  • CSS hyphenation — Enables native browser hyphenation on frontend content.
  • Soft hyphen exceptions — Insert explicit break points via an exception dictionary at render time.
  • TeX pattern fallback — Automatic hyphenation using org_heigl/hyphenator dictionaries for 30+ locales (German, Norwegian (Bokmål/Nynorsk), Danish, Dutch, Swedish, Icelandic, English, Spanish, French, Italian, Portuguese, Polish, Czech, Slovak, Slovenian, Hungarian, and many more).
  • Locale-aware — Prefix exceptions with a locale (e.g. nb_NO:digitaliserings-organisasjon).
  • Case-preserving — Matches exceptions case-insensitively but renders with original casing.
  • Non-destructive — Processes at render time; saved post content is never modified.
  • Block-aware — Filters Gutenberg blocks and classic the_content output.

Requirements

  • PHP 8.3+
  • WordPress 6.8+

Installation

  1. Download ps-hyphenate.zip
  2. Upload via Plugins → Add New → Upload Plugin
  3. Activate via WordPress Admin → Plugins
  4. Configure exceptions via Settings → PS Hyphenate

Plugin updates are handled automatically via GitHub. No need to manually download and install updates.

Composer:

composer require soderlind/ps-hyphenate

Exception Dictionary

Add entries in Settings → PS Hyphenate → Exception dictionary.

Format Example
Explicit Donaudampfschifffahrtsgesellschaft=Donau-dampf-schiff-fahrts-gesellschaft
Visible compound hyphen nb_NO:personvernforordningen=per-son-vern--for-ord-nin-gen
Shorthand digitaliserings-organisasjon
Locale-prefixed nb_NO:menneske-rettighets-organisasjon

Single hyphens in the replacement mark soft hyphen positions. Double hyphens mark a soft break before a visible compound hyphen.

Automatic Updates

This plugin supports automatic updates from GitHub releases via soderlind/wordpress-github-updater.

When a new release is published on GitHub, WordPress will detect and offer the update through the standard plugin update mechanism.

Development

composer install
composer test

Tests use Pest with Brain Monkey for WordPress function mocks.

License

GPL-2.0-or-later

统计信息

  • 总下载量: 140
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-05-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固