philippoehrlein/typo-search-and-paste
Composer 安装命令:
composer require philippoehrlein/typo-search-and-paste
包简介
A Kirby plugin for searching and inserting special characters with multi-language support.
README 文档
README
A Kirby plugin that provides a searchable interface for special characters, built on top of Typo & Paste.
Features
- Searchable database of special characters
- Multi-language support
- SQLite-based search engine
- Seamless integration with Typo & Paste (v2.4.0+)
- Standalone functionality for Kirby 5
Installation
Installation via Composer
composer require philippoehrlein/typo-search-and-paste
Manual Installation
- Download and extract the plugin
- Copy the
typo-search-and-pastefolder into/site/plugins/
Configuration
With Typo & Paste (v2.4.0+)
If you have Typo & Paste v2.4.0 or higher installed, no additional configuration is needed. The search functionality will be automatically integrated.
Panel Toolbar Button
In Kirby 5, you can add the Typo Search & Paste button to your panel toolbar in two ways:
1. In your blueprint:
buttons: - typo-search-and-paste - preview - settings - languages - status
2. Globally in your config:
// site/config/config.php return [ 'panel' => [ 'viewButtons' => [ // Page view 'page' => ['typo-search-and-paste', 'preview', 'settings', 'languages', 'status'], // Site view 'site' => ['typo-search-and-paste', 'preview', 'languages'] ] ] ];
Troubleshooting
If you encounter FTS5-related errors on shared hosting environments, see FTS5_TROUBLESHOOTING.md for solutions and configuration options.
Contributing to the Character Database
The plugin uses SQLite databases for efficient character searching. You can contribute to the character database by following these steps:
- Navigate to the
data/srcdirectory - Create or modify JSON files for your language (e.g.,
en.json,de.json) - Each JSON file should follow this structure:
{
"characters": [
{
"value": "©",
"name": "Copyright Sign",
"aliases": ["copyright", "c"]
}
]
}
- Run the build script to update the database:
php data/src/build.php [options]
Build Script Options
-
--lang: Specify languages to build (comma-separated)php data/src/build.php --lang=en,de
-
--include: Include specific categoriesphp data/src/build.php --include=math,symbols
-
--exclude: Exclude specific categoriesphp data/src/build.php --exclude=math,symbols
Note: --include and --exclude cannot be used simultaneously. If both are provided, --exclude will be ignored.
License
MIT License
philippoehrlein/typo-search-and-paste 适用场景与选型建议
philippoehrlein/typo-search-and-paste 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.23k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2025 年 05 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 philippoehrlein/typo-search-and-paste 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 philippoehrlein/typo-search-and-paste 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 1.23k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-06
