Open lifetraveler opened 1 year ago
U can input CJK fonts at outside anywhere, and COPY & PASTE into docker-firefox
need a web clipboard, like jishiben.me ( not AD )
thank u. something like this docker-firefox in qnap nas os,called browser station,the way to handle this is just popup a floating box ,you can use your own ime to put chinese into it(pic 1),when its done,it passthough the text to the browser (pic 2)。
oh, it also can, just need do this
i know the way,i hope it can be more easier without cv :) but thank u
Do you know if there is a Firefox plugin that offer this functionality ?
Also, the BrowserStation in QNAP seems to be a Chrome browser. Do you have anything to do to activate the popup floating window ? Is this implemented via a plugin ?
yeah,its chrome brower, :)
--do you have anything to do to active the popup floating window ? Is this implemented via a plugin ? just switch my IME(Input Method Editors) into chinese mode,when you put key down ,its automatic active. i google a lot about that, some one says its maybe hard to image that for english user,there is a weblink to learn more about it.
here is a gif to get it
now i use the clipboard in sidebar. :),i may Take some time to get used to it。
qnap browser station is seemed to be a little slowlier when work with chinese input and not support proxy in browser。 your docker-firefox image support proxy,its much important than a chinese ime for me . thank u
just switch my IME(Input Method Editors) into chinese mode,when you put key down ,its automatic active.
Who is providing this IME (the floating window) ? Is it your OS or the BrowserStation ?
they are two parts,the floating window is provided by BrowserStation.IME is on the OS
Hi!some user like me,a chinese,use the docker-firefox for searching or input with my own mother language, but the docker-firefox only support english ime,the Fcitx software packge is a chinese ime,i wish docker-firefox can release with Fcitx ,thank u!
Someone has packged ibus for alpine(download link). I have installed and started it. But it doesn't take effect in firefox. Maybe it is caued by some config. I installed fcitx in arch, and ime didn't take effect too. The problem was resolved by export environment config in startup script of my application. But it didn't resolve my problem in apline. 英语太过跛脚,我补充下中文:在百度贴吧我看过一个帖主打包了apline的ibus输入法。我安装了,也启动了。但是在firefox中不生效。不知道是不是环境变量的问题。之前我在arch的docker容器中装过fcitx,应用中输入法也是不生效,通过在应用的启动脚本中增加变量解决的。但我在alpine中没有解决,有兴趣你也可以试试。
they are two parts,the floating window is provided by BrowserStation.IME is on the OS
kasm also provides this function. But it takes much more space.
Using userscript in Firefox can auto read Clipboard on change, and input it into page. it is useful to me. @tsurara-guobin @lifetraveler
about:config
in navigation bardom.events.testing.asyncClipboard
dom.events.asyncClipboard.readText
and set true// ==UserScript==
// @name auto Clipboard
// @match https://*/*
// @match http://*/*
// @grant none
// @version 1.0
// @author h2y
// @description 27/03/2023, 17:31:59
// ==/UserScript==
(_ => {
let lastTxt = ""
setInterval(_ => {
let inp = document.querySelector("input:focus, textarea:focus");
if (!inp) return;
navigator.clipboard.readText().then(txt => {
if (txt != lastTxt) {
lastTxt = txt;
if (inp.value != txt) inp.value = txt;
}
});
}, 2000)
})()
Using fcitx in this image is fairly simple.
docker exec -it #your_started_container_name# sh
apk add fcitx5 fcitx5-chinese-addons --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing
to install fcitx input methodstartapp.sh
, start fcitx along with firefoxCtrl + Space
to switch between English and Chinese在此图像中使用 fcitx 相当简单。
- 像往常一样启动 docker-firefox 容器
- 跑步
docker exec -it #your_started_container_name# sh
- 运行
apk add fcitx5 fcitx5-chinese-addons --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing
安装fcitx输入法- 提交对图像的更改
- 修改
startapp.sh
,启动fcitx和firefox使用以下环境变量集启动容器
- 语言=zh_CN.UTF-8
- X修饰符=@im=fcitx
- GTK_IM_MODULE=fcitx
- QT_IM_MODULE=fcitx`
- 用于
Ctrl + Space
切换英文和中文
Can you provide a mirror image? thank you
FROM jlesage/firefox RUN apk add fcitx5 fcitx5-chinese-addons --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing ENV GTK_IM_MODULE=fcitx \ QT_IM_MODULE=fcitx \ XMODIFIERS=@im=fcitx \ SDL_IM_MODULE=fcitx5 \ LANG=zh_CN.UTF-8
docker exec -it firefox sh nohup fcitx5 > /dev/null 2>&1 &
在此图像中使用 fcitx 相当简单。
- 像往常一样启动 docker-firefox 容器
- 跑步
docker exec -it #your_started_container_name# sh
- 运行
apk add fcitx5 fcitx5-chinese-addons --repository=https://dl-cdn.alpinelinux.org/alpine/edge/testing
安装fcitx输入法- 提交对图像的更改
- 修改
startapp.sh
,启动fcitx和firefox使用以下环境变量集启动容器
- 语言=zh_CN.UTF-8
- X修饰符=@im=fcitx
- GTK_IM_MODULE=fcitx
- QT_IM_MODULE=fcitx`
- 用于
Ctrl + Space
切换英文和中文Can you provide a mirror image? thank you
按照这个来进入火狐浏览器网页发现 Ctrl+space 切换不了输入法 然后进入firefox容器内 fcitx5-remote 会发现与dbus连接失败 然后apk下载dbus-demo和dbus,创建好用户组、文件夹、环境变量给予足够权限 后重启fcitx5,会发现fcitx5 报 E2024-04-23 16:43:51.530199 addonloader.cpp:61] Failed to create addon: dbus Unable to request dbus name. Is there another fcitx already running?
Hi!some user like me,a chinese,use the docker-firefox for searching or input with my own mother language, but the docker-firefox only support english ime,the Fcitx software packge is a chinese ime,i wish docker-firefox can release with Fcitx ,thank u!