方案配置文件+详细说明:Rime+小鹤双拼+颜文字+笔画混合输入方案
实现的功能是:给小鹤双拼添加颜文字支持,直接打双拼出颜文字,支持模糊音,支持词频调整,同时不影响小鹤双拼自带的笔画反查。
要实现双拼+颜文字
的功能网上已经有很多方法,但都有些弊端,这里分别简单介绍下:
package android.support.v4.graphics.drawable; | |
import android.graphics.drawable.Drawable; | |
import android.graphics.drawable.DrawableContainer; | |
import android.graphics.drawable.GradientDrawable; | |
import android.os.Build; | |
/** | |
* 参考support-v4-23.1.1源码, 修复{@link DrawableCompat#wrap(Drawable)}方法在状态改变后不刷新的问题 | |
* <p/> |
import java.io.*; | |
import java.rmi.AccessException; | |
import java.util.Arrays; | |
import java.util.Enumeration; | |
import java.util.zip.ZipEntry; | |
import java.util.zip.ZipFile; | |
import java.util.zip.ZipInputStream; | |
import java.util.zip.ZipOutputStream; | |
/** |
/* | |
* Copyright 2013 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
/* | |
* Copyright 2013 The Android Open Source Project | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
方案配置文件+详细说明:Rime+小鹤双拼+颜文字+笔画混合输入方案
实现的功能是:给小鹤双拼添加颜文字支持,直接打双拼出颜文字,支持模糊音,支持词频调整,同时不影响小鹤双拼自带的笔画反查。
要实现双拼+颜文字
的功能网上已经有很多方法,但都有些弊端,这里分别简单介绍下:
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import sys, os, random, itertools, re, functools | |
import urllib.parse, urllib.request | |
from PIL import Image, ImageFilter, ImageDraw, ImageColor | |
""" |
// 在匿名函数中执行代码, 防止污染全局变量 | |
(function () { | |
'use strict'; | |
console.log('hello world'); | |
var id, type, feedback, group; | |
if (window.aid) { | |
id = window.aid; | |
type = "arc"; | |
} else if (window.tp_id) { | |
id = window.tp_id; |
:checked | |
:class | |
:click | |
:disabled | |
:for | |
:id | |
:name | |
:readonly | |
:style | |
:title |
// ==UserScript== | |
// @name New Userscript | |
// @namespace https://github.com/ipcjs | |
// @version 0.0.1 | |
// @description try to take over the world! | |
// @author ipcjs | |
// @match http://bangumi.bilibili.com/anime/5788/play* | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |